Skip to content

Commit

Permalink
Make convert_ocean_to_land = .true. the default and improve error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
slevis-lmwg committed Feb 4, 2024
1 parent 831c1aa commit 365ac27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions bld/namelist_files/namelist_defaults_ctsm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1865,8 +1865,7 @@ lnd/clm2/surfdata_esmf/NEON/surfdata_1x1_NEON_TOOL_hist_78pfts_CMIP6_simyr2000_c

<run_zero_weight_urban>.false.</run_zero_weight_urban>

<convert_ocean_to_land>.false.</convert_ocean_to_land>
<convert_ocean_to_land phys="clm5_1">.true.</convert_ocean_to_land>
<convert_ocean_to_land>.true.</convert_ocean_to_land>

<collapse_urban structure="standard" >.false.</collapse_urban>
<collapse_urban structure="fast" >.true.</collapse_urban>
Expand Down
4 changes: 4 additions & 0 deletions src/main/subgridWeightsMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,10 @@ subroutine check_weights (bounds, active_only)
write(iulog,*) 'The matching input grid cell had some non-zero-weight subgrid type'
write(iulog,*) 'that is not present in memory in the new run.'
write(iulog,*) ' '
write(iulog,*) 'If you are using a ctsm5.2 or later fsurdat file containing'
write(iulog,*) 'PCT_OCEAN > 0, then you may solve the error by setting'
write(iulog,*) 'convert_ocean_to_land = .true.'
write(iulog,*) ' '
call endrun(msg=errMsg(sourcefile, __LINE__))
end if

Expand Down

0 comments on commit 365ac27

Please sign in to comment.