Skip to content

Commit d2f1299

Browse files
authored
Merge pull request #3272 from slevis-lmwg/no_reseed_on_branch
Throw error if reseed_dead_plants = .true. in a branch simulation
2 parents 4e753aa + c6b77a5 commit d2f1299

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

bld/CLMBuildNamelist.pm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4478,6 +4478,10 @@ sub setup_logic_cngeneral {
44784478
"(eg. don't use these options with SP mode).");
44794479
}
44804480
}
4481+
if ( &value_is_true($nl->get_value('reseed_dead_plants')) &&
4482+
&remove_leading_and_trailing_quotes($nl_flags->{'clm_start_type'}) eq "branch") {
4483+
$log->fatal_error("reseed_dead_plants MUST be .false. in a branch run");
4484+
}
44814485
}
44824486

44834487
#-------------------------------------------------------------------------------

bld/unit_testers/build-namelist_test.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -678,6 +678,10 @@ sub cat_and_create_namelistinfile {
678678
namelst=>"soil_decomp_method='None'",
679679
phys=>"clm5_0",
680680
},
681+
"reseed with branch" =>{ options=>"-clm_start_type branch -envxml_dir .",
682+
namelst=>"reseed_dead_plants=.true.",
683+
phys=>"clm6_0",
684+
},
681685
"reseed without CN" =>{ options=>" -envxml_dir . -bgc sp",
682686
namelst=>"reseed_dead_plants=.true.",
683687
phys=>"clm5_0",

0 commit comments

Comments
 (0)