Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
7c46935
initial implementation of spatially distributed parameters
swensosc Jul 10, 2025
1fe77d5
revert zbedrock_sf and om_frac_sf
swensosc Jul 10, 2025
f661443
remove some unused readparam routines
swensosc Jul 10, 2025
c6d1fd7
use data streams
swensosc Aug 5, 2025
51007cd
add ncd_inqnvars
swensosc Aug 5, 2025
90db989
move namelist parameters to parameter file
swensosc Aug 7, 2025
b654f54
refactor precip repartitioning
swensosc Aug 11, 2025
16442ee
remove distributed_parameter file
swensosc Aug 11, 2025
d4d1f66
fix bld conflicts
swensosc Oct 16, 2025
5b1c0db
Merge branch 'b4b-dev' into move_nml_parameters
slevis-lmwg Dec 15, 2025
d4c1d6b
Update namelist_defaults_ctsm.xml with two new paramfiles
slevis-lmwg Dec 23, 2025
4c335bb
Merge branch 'b4b-dev' into move_nml_parameters
slevis-lmwg Jan 13, 2026
c7108fc
Merge branch 'b4b-dev' into move_nml_parameters
slevis-lmwg Feb 11, 2026
d7ac388
Update ccs_config to version where ifx compiler is used
ekluzek Feb 18, 2026
e3e40c1
Update to cdeps version that allows for NaN's in stream file to make …
ekluzek Feb 19, 2026
6f94e28
Update mosart with the ifx fix
ekluzek Feb 20, 2026
a6241dc
Merge branch 'master' into update_intel_to_ifx
ekluzek Feb 21, 2026
13bb883
Add fates test to expected fails
ekluzek Feb 23, 2026
7bcd8c7
Merge pull request #3769 from ekluzek/update_intel_to_ifx
ekluzek Feb 27, 2026
2f75499
Update CDEPS to cdeps1.0.93.
samsrabin Mar 1, 2026
bd28579
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
871683e
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
b7de0c5
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
243d2be
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
1ed56a4
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
251bb80
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
03f9409
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
f2983e1
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
6cab1c7
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
917b9d8
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
02bcb54
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
1714c44
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
a53e400
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
886f7cc
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
cca9005
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/cro…
samsrabin Mar 1, 2026
4221097
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/iso…
samsrabin Mar 1, 2026
6cd8a2d
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
d2b5914
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
aa1b145
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/par…
samsrabin Mar 1, 2026
acb55d0
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
0bf1af6
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
8db0c07
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
dc3fb5e
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
01dcf77
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
2a60705
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
f8a9c28
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
4497c53
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
9c0907a
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
de57e70
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
f8022c5
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
48ee0ae
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
d6b7f7f
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
7f40951
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/sur…
samsrabin Mar 1, 2026
b4088e0
One more replacement of sdates_ggcmi_crop_calendar_phase3_v1.01_nnint…
samsrabin Mar 1, 2026
a703995
Move 5x5_amazon hillslope file from my scratch to inputdata.
samsrabin Mar 1, 2026
60a9c5d
Handled NaN fill values in '$CESMDATAROOT/cseg/inputdata/lnd/clm2/tes…
samsrabin Mar 1, 2026
7356b8b
Mark ERP_D_P64x2_Ld10.f10_f10_mg37.I2000Clm60Bgc.derecho_intel.clm-Hi…
samsrabin Mar 2, 2026
9f2398a
Mark more tests as expected to fail during RUN.
samsrabin Mar 2, 2026
9649148
Merge pull request #3787 from samsrabin/replace-netcdfs-with-nan-fills
ekluzek Mar 3, 2026
cc34c60
Start working on the change files
ekluzek Mar 3, 2026
3ef268b
Final change files
ekluzek Mar 4, 2026
bdd79ba
add snicar params
swensosc Mar 4, 2026
f3a9ac9
Update date on Change files
ekluzek Mar 4, 2026
059d708
Merge pull request #3786 from ESCOMP/ifx
ekluzek Mar 4, 2026
c0f67b8
Merge remote-tracking branch 'escomp/b4b-dev' into move_nml_parameters
ekluzek Mar 4, 2026
dc75fe6
Update more paramfiles: coupled clm60, clm50, and clm45
ekluzek Mar 5, 2026
5b4c365
Merge branch 'move_nml_parameters' into distributed_parameters
ekluzek Mar 6, 2026
f6956f7
Remove a bit that came in from the merge that should've been deleted
ekluzek Mar 6, 2026
1781ff0
list of strings fails to build with gnu, because they are different l…
ekluzek Mar 6, 2026
33d104f
Add script from @swensosc to create distributed parameter 2D files to…
ekluzek Mar 6, 2026
61903c2
Setup to run on Derecho, and adjust paths and filenames to latest cts…
ekluzek Mar 6, 2026
3420aa9
Add a note that the surface dataset is only used as a template so the…
ekluzek Mar 6, 2026
0bfa242
Start adding testmods to check that distributed parameters works
ekluzek Mar 6, 2026
831e459
Merge remote-tracking branch 'escomp/master' into distributed_parameters
ekluzek Mar 6, 2026
2d7bc9e
Fix the namelist names
ekluzek Mar 8, 2026
046bc85
Add a test for distributed parameters and a default one to compare it…
ekluzek Mar 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/RTM
[submodule "mosart"]
path = components/mosart
url = https://github.com/ESCOMP/MOSART
fxtag = mosart1.1.12
fxtag = mosart1.1.13
fxrequired = ToplevelRequired
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
fxDONOTUSEurl = https://github.com/ESCOMP/MOSART
Expand All @@ -68,7 +68,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/mizuRoute
[submodule "ccs_config"]
path = ccs_config
url = https://github.com/ESMCI/ccs_config_cesm.git
fxtag = ccs_config_cesm1.0.66
fxtag = ccs_config_cesm1.0.75
fxrequired = ToplevelRequired
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
fxDONOTUSEurl = https://github.com/ESMCI/ccs_config_cesm.git
Expand All @@ -92,7 +92,7 @@ fxDONOTUSEurl = https://github.com/ESCOMP/CMEPS.git
[submodule "cdeps"]
path = components/cdeps
url = https://github.com/ESCOMP/CDEPS.git
fxtag = cdeps1.0.92
fxtag = cdeps1.0.93
fxrequired = ToplevelRequired
# Standard Fork to compare to with "git fleximod test" to ensure personal forks aren't committed
fxDONOTUSEurl = https://github.com/ESCOMP/CDEPS.git
Expand Down
68 changes: 26 additions & 42 deletions bld/CLMBuildNamelist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1834,6 +1834,11 @@ sub process_namelist_inline_logic {
##################################
setup_logic_cropcal_streams($opts, $nl_flags, $definition, $defaults, $nl);

##################################
# namelist group: distparams_streams #
##################################
setup_logic_distparams_streams($opts, $nl_flags, $definition, $defaults, $nl);

##########################################
# namelist group: soil_moisture_streams #
##########################################
Expand Down Expand Up @@ -1893,11 +1898,6 @@ sub process_namelist_inline_logic {
#####################################
setup_logic_canopy($opts, $nl_flags, $definition, $defaults, $nl);

########################################
# namelist group: soilhydrology_inparm #
########################################
setup_logic_hydrology_params($opts, $nl_flags, $definition, $defaults, $nl);

#####################################
# namelist group: irrigation_inparm #
#####################################
Expand Down Expand Up @@ -3354,28 +3354,6 @@ sub setup_logic_supplemental_nitrogen {

#-------------------------------------------------------------------------------

sub setup_logic_hydrology_params {
#
# Logic for hydrology parameters
#
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

my $lower = $nl->get_value( 'lower_boundary_condition' );
my $var = "baseflow_scalar";
if ( $lower == 1 || $lower == 2 ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl,
$var, 'lower_boundary_condition' => $lower );
}
my $val = $nl->get_value( $var );
if ( defined($val) ) {
if ( $lower != 1 && $lower != 2 ) {
$log->fatal_error("baseflow_scalar is only used for lower_boundary_condition of flux or zero-flux");
}
}
}

#-------------------------------------------------------------------------------

sub setup_logic_irrigation_parameters {
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

Expand Down Expand Up @@ -4627,6 +4605,25 @@ sub setup_logic_cropcal_streams {

#-------------------------------------------------------------------------------

sub setup_logic_distparams_streams {
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, 'use_distributed_parameters');

# Add defaults if using any crop calendar input files
my $distparams_file = $nl->get_value('stream_fldFileName_distparams') ;
my $mesh_file = $nl->get_value('stream_meshfile_distparams') ;

# User provided an input file but set mesh file to empty
if ( !&string_is_undef_or_empty($distparams_file)) {
if ( &string_is_undef_or_empty($mesh_file) ) {
$log->fatal_error("If providing a spatially distributed parameter file, you must provide stream_meshfile_distparams" );
}
}
}

#-------------------------------------------------------------------------------

sub setup_logic_soilwater_movement {
my ($opts, $nl_flags, $definition, $defaults, $nl) = @_;

Expand Down Expand Up @@ -4865,19 +4862,6 @@ sub setup_logic_atm_forcing {
}
}
}

foreach $var ("precip_repartition_glc_all_snow_t",
"precip_repartition_glc_all_rain_t",
"precip_repartition_nonglc_all_snow_t",
"precip_repartition_nonglc_all_rain_t") {
if ( &value_is_true($nl->get_value("repartition_rain_snow")) ) {
add_default($opts, $nl_flags->{'inputdata_rootdir'}, $definition, $defaults, $nl, $var);
} else {
if (defined($nl->get_value($var))) {
$log->fatal_error("$var can only be set if repartition_rain_snow is true");
}
}
}
}

#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -5427,11 +5411,11 @@ sub write_output_files {

@groups = qw(clm_inparm ndepdyn_nml popd_streams urbantv_streams light_streams
soil_moisture_streams lai_streams atm2lnd_inparm lnd2atm_inparm clm_canopyhydrology_inparm cnphenology
cropcal_streams megan_opts
cropcal_streams megan_opts distparams_streams
clm_soilhydrology_inparm dynamic_subgrid cnvegcarbonstate
finidat_consistency_checks dynpft_consistency_checks
clm_initinterp_inparm century_soilbgcdecompcascade
soilhydrology_inparm luna friction_velocity mineral_nitrogen_dynamics
luna friction_velocity mineral_nitrogen_dynamics
soilwater_movement_inparm rooting_profile_inparm
soil_resis_inparm bgc_shared canopyfluxes_inparm aerosol
clmu_inparm clm_soilstate_inparm clm_nitrogen clm_snowhydrology_inparm hillslope_hydrology_inparm hillslope_properties_inparm
Expand Down
Loading