Skip to content

Commit

Permalink
add option to copy inputs for regional grid hep20 and NUOPCfied flag …
Browse files Browse the repository at this point in the history
…lwflag=2
  • Loading branch information
abozec committed May 9, 2016
1 parent a553897 commit aeeaa3e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
23 changes: 22 additions & 1 deletion bld/hycom.buildnml.csh
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,16 @@ if ($MACH == "yellowstone") then
echo "error copying hycom input data file, abort"
exit 2
endif
else if ($OCN_GRID == "hep20") then
if (-e /glade/p/work/abozec/hycom/HYCOM_CESM/INPUT_hep20/) then
cp -p -f /glade/p/work/abozec/hycom/HYCOM_CESM/INPUT_hep20/* .
else
echo "error copying hycom input data file, abort"
exit 2
endif
endif
## NAVY Machines
else if ($MACH == "shepard") then
else if ($MACH == "shepard" || $MACH == "gordon") then
echo "We are on" ${MACH}
echo "Getting ocean input files"
## get the input file depending on the grid
Expand All @@ -68,6 +75,13 @@ else if ($MACH == "shepard") then
echo "error copying hycom input data file, abort"
exit 2
endif
else if ($OCN_GRID == "hep20") then
if (-e /p/work1/abozec/hycom/HYCOM_CESM/INPUT_hep20/) then
cp -p -f /p/work1/abozec/hycom/HYCOM_CESM/INPUT_hep20/* .
else
echo "error copying hycom input data file, abort"
exit 2
endif
endif
else if ($MACH == "kilrain") then
echo "We are on" ${MACH}
Expand All @@ -87,6 +101,13 @@ else if ($MACH == "kilrain") then
echo "error copying hycom input data file, abort"
exit 2
endif
else if ($OCN_GRID == "hep20") then
if (-e /scr/abozec/hycom/HYCOM_CESM/INPUT_hep20/) then
cp -p -f /scr/abozec/hycom/HYCOM_CESM/INPUT_hep20/* .
else
echo "error copying hycom input data file, abort"
exit 2
endif
endif
endif

Expand Down
10 changes: 10 additions & 0 deletions sorc/thermf.F
Original file line number Diff line number Diff line change
Expand Up @@ -1138,9 +1138,19 @@ subroutine thermfj(m,n,dtime, j)
endif !natm
endif
!correction is blackbody radiation from tdif at tsur
#ifdef NUOPC
if(.not.(cpl_swflx.and.cpl_lwmdnflx.and.cpl_lwmupflx)) then
radfl = radfl - (4.506+0.0554*tsur) * tdif
!count the correction as a relaxation term
sstflx(i,j) = - (4.506+0.0554*tsur) * tdif
else
sstflx(i,j) = 0.0
endif
#else
radfl = radfl - (4.506+0.0554*tsur) * tdif
!count the correction as a relaxation term
sstflx(i,j) = - (4.506+0.0554*tsur) * tdif
#endif
else
sstflx(i,j) = 0.0
endif
Expand Down

0 comments on commit aeeaa3e

Please sign in to comment.