@@ -2867,14 +2867,20 @@ sub setup_logic_do_transient_pfts {
28672867 }
28682868
28692869 # if do_transient_pfts is .true. and any of these (n_dom_* or toosmall_*)
2870- # are > 0 or collapse_urban = .true., then give fatal error
2870+ # are > 0 or collapse_urban = .true., or vars_1dwt_w_time = .false., then give fatal error
28712871 if (&value_is_true($nl -> get_value($var ))) {
28722872 if (&value_is_true($nl -> get_value(' collapse_urban' ))) {
28732873 $log -> fatal_error(" $var cannot be combined with collapse_urban" );
28742874 }
28752875 if ($n_dom_pfts > 0 || $n_dom_landunits > 0 || $toosmall_soil > 0 || $toosmall_crop > 0 || $toosmall_glacier > 0 || $toosmall_lake > 0 || $toosmall_wetland > 0 || $toosmall_urban > 0) {
28762876 $log -> fatal_error(" $var cannot be combined with any of the of the following > 0: n_dom_pfts > 0, n_dom_landunit > 0, toosmall_soi > 0._r8, toosmall_crop > 0._r8, toosmall_glacier > 0._r8, toosmall_lake > 0._r8, toosmall_wetland > 0._r8, toosmall_urban > 0._r8" );
28772877 }
2878+
2879+ add_default($opts , $nl_flags -> {' inputdata_rootdir' }, $definition , $defaults , $nl , ' vars_1dwt_w_time' ,
2880+ ' do_transient_pfts' => $nl_flags -> {' do_transient_pfts' });
2881+ if (!&value_is_true($nl -> get_value(' vars_1dwt_w_time' ))) {
2882+ $log -> fatal_error(" vars_1dwt_w_time cannot be .false. if do_transient_pfts is .true." );
2883+ }
28782884 }
28792885}
28802886
@@ -2944,14 +2950,20 @@ sub setup_logic_do_transient_crops {
29442950 }
29452951
29462952 # if do_transient_crops is .true. and any of these (n_dom_* or toosmall_*)
2947- # are > 0 or collapse_urban = .true., then give fatal error
2953+ # are > 0 or collapse_urban = .true., or vars_1dwt_w_time = .false., then give fatal error
29482954 if (&value_is_true($nl -> get_value($var ))) {
29492955 if (&value_is_true($nl -> get_value(' collapse_urban' ))) {
29502956 $log -> fatal_error(" $var cannot be combined with collapse_urban" );
29512957 }
29522958 if ($n_dom_pfts > 0 || $n_dom_landunits > 0 || $toosmall_soil > 0 || $toosmall_crop > 0 || $toosmall_glacier > 0 || $toosmall_lake > 0 || $toosmall_wetland > 0 || $toosmall_urban > 0) {
29532959 $log -> fatal_error(" $var cannot be combined with any of the of the following > 0: n_dom_pfts > 0, n_dom_landunit > 0, toosmall_soil > 0._r8, toosmall_crop > 0._r8, toosmall_glacier > 0._r8, toosmall_lake > 0._r8, toosmall_wetland > 0._r8, toosmall_urban > 0._r8" );
29542960 }
2961+
2962+ add_default($opts , $nl_flags -> {' inputdata_rootdir' }, $definition , $defaults , $nl , ' vars_1dwt_w_time' ,
2963+ ' do_transient_crops' => $nl_flags -> {' do_transient_crops' });
2964+ if (!&value_is_true($nl -> get_value(' vars_1dwt_w_time' ))) {
2965+ $log -> fatal_error(" vars_1dwt_w_time cannot be .false. if do_transient_crops is .true." );
2966+ }
29552967 }
29562968
29572969 my $dopft = " do_transient_pfts" ;
@@ -3021,7 +3033,7 @@ sub setup_logic_do_transient_lakes {
30213033 }
30223034
30233035 # if do_transient_lakes is .true. and any of these (n_dom_* or toosmall_*)
3024- # are > 0 or collapse_urban = .true., then give fatal error
3036+ # are > 0 or collapse_urban = .true., or vars_1dwt_w_time = .false., then give fatal error
30253037 if (&value_is_true($nl -> get_value($var ))) {
30263038 if (&value_is_true($nl -> get_value(' collapse_urban' ))) {
30273039 $log -> fatal_error(" $var cannot be combined with collapse_urban" );
@@ -3031,6 +3043,12 @@ sub setup_logic_do_transient_lakes {
30313043 if ($n_dom_pfts > 0 || $n_dom_landunits > 0 || $toosmall_soil > 0 || $toosmall_crop > 0 || $toosmall_glacier > 0 || $toosmall_lake > 0 || $toosmall_wetland > 0 || $toosmall_urban > 0) {
30323044 $log -> fatal_error(" $var cannot be combined with any of the of the following > 0: n_dom_pfts > 0, n_dom_landunit > 0, toosmall_soil > 0._r8, toosmall_crop > 0._r8, toosmall_glacier > 0._r8, toosmall_lake > 0._r8, toosmall_wetland > 0._r8, toosmall_urban > 0._r8" );
30333045 }
3046+
3047+ add_default($opts , $nl_flags -> {' inputdata_rootdir' }, $definition , $defaults , $nl , ' vars_1dwt_w_time' ,
3048+ ' do_transient_lakes' => $nl_flags -> {' do_transient_lakes' });
3049+ if (!&value_is_true($nl -> get_value(' vars_1dwt_w_time' ))) {
3050+ $log -> fatal_error(" vars_1dwt_w_time cannot be .false. if do_transient_lakes is .true." );
3051+ }
30343052 }
30353053}
30363054
@@ -3093,7 +3111,7 @@ sub setup_logic_do_transient_urban {
30933111 }
30943112
30953113 # if do_transient_urban is .true. and any of these (n_dom_* or toosmall_*)
3096- # are > 0 or collapse_urban = .true., then give fatal error
3114+ # are > 0 or collapse_urban = .true., or vars_1dwt_w_time = .false., then give fatal error
30973115 if (&value_is_true($nl -> get_value($var ))) {
30983116 if (&value_is_true($nl -> get_value(' collapse_urban' ))) {
30993117 $log -> fatal_error(" $var cannot be combined with collapse_urban" );
@@ -3103,6 +3121,12 @@ sub setup_logic_do_transient_urban {
31033121 if ($n_dom_pfts > 0 || $n_dom_landunits > 0 || $toosmall_soil > 0 || $toosmall_crop > 0 || $toosmall_glacier > 0 || $toosmall_lake > 0 || $toosmall_wetland > 0 || $toosmall_urban > 0) {
31043122 $log -> fatal_error(" $var cannot be combined with any of the of the following > 0: n_dom_pfts > 0, n_dom_landunit > 0, toosmall_soil > 0._r8, toosmall_crop > 0._r8, toosmall_glacier > 0._r8, toosmall_lake > 0._r8, toosmall_wetland > 0._r8, toosmall_urban > 0._r8" );
31053123 }
3124+
3125+ add_default($opts , $nl_flags -> {' inputdata_rootdir' }, $definition , $defaults , $nl , ' vars_1dwt_w_time' ,
3126+ ' do_transient_urban' => $nl_flags -> {' do_transient_urban' });
3127+ if (!&value_is_true($nl -> get_value(' vars_1dwt_w_time' ))) {
3128+ $log -> fatal_error(" vars_1dwt_w_time cannot be .false. if do_transient_urban is .true." );
3129+ }
31063130 }
31073131}
31083132
0 commit comments