Skip to content

Commit

Permalink
Merge pull request #387 from jedwards4b/fix_aoflux_and_swtoocn
Browse files Browse the repository at this point in the history
make xgrid default and fix sw flux to mom ocn
  • Loading branch information
jedwards4b committed May 24, 2023
2 parents 09d1e08 + e94015a commit b7bc64e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cime_config/namelist_definition_drv.xml
Original file line number Diff line number Diff line change
Expand Up @@ -927,7 +927,7 @@
default: ogrid
</desc>
<values>
<value>ogrid</value>
<value>xgrid</value>
</values>
</entry>
<entry id="ocn_surface_flux_scheme">
Expand Down
6 changes: 5 additions & 1 deletion mediator/med_phases_prep_ocn_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,11 @@ subroutine med_phases_prep_ocn_custom_cesm(gcomp, rc)
if (ChkErr(rc,__LINE__,u_FILE_u)) return

! Check that the necessary export field is present
if ( .not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet', rc=rc)) then
if ( .not. FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet', rc=rc) .and. &
.not. (FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdr', rc=rc) .and. &
FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_vdf', rc=rc) .and. &
FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idr', rc=rc) .and. &
FB_fldchk(is_local%wrap%FBExp(compocn), 'Foxx_swnet_idf', rc=rc))) then
return
end if

Expand Down

0 comments on commit b7bc64e

Please sign in to comment.