Skip to content

Commit

Permalink
reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TeaganKing committed Jun 28, 2024
1 parent 67a45ac commit 51440f3
Showing 1 changed file with 11 additions and 33 deletions.
44 changes: 11 additions & 33 deletions python/ctsm/site_and_regional/plumber2_usermods.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,35 +74,17 @@ def write_usermods(
+ "-"
+ str(end_year)
+ '.nc " >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_first='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_last='
+ str(end_year)
+ '" >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_align='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_first=' + str(start_year) + '" >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_last=' + str(end_year) + '" >> user_nl_datm_streams \n'
'echo "presaero.SSP3-7.0:year_align=' + str(start_year) + '" >> user_nl_datm_streams \n'
"\n"
'echo "presndep.SSP3-7.0:year_first='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "presndep.SSP3-7.0:year_last='
+ str(end_year)
+ '" >> user_nl_datm_streams \n'
'echo "presndep.SSP3-7.0:year_align='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "presndep.SSP3-7.0:year_first=' + str(start_year) + '" >> user_nl_datm_streams \n'
'echo "presndep.SSP3-7.0:year_last=' + str(end_year) + '" >> user_nl_datm_streams \n'
'echo "presndep.SSP3-7.0:year_align=' + str(start_year) + '" >> user_nl_datm_streams \n'
"\n"
'echo "co2tseries.SSP3-7.0:year_first='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "co2tseries.SSP3-7.0:year_last='
+ str(end_year)
+ '" >> user_nl_datm_streams \n'
'echo "co2tseries.SSP3-7.0:year_align='
+ str(start_year)
+ '" >> user_nl_datm_streams \n'
'echo "co2tseries.SSP3-7.0:year_first=' + str(start_year) + '" >> user_nl_datm_streams \n'
'echo "co2tseries.SSP3-7.0:year_last=' + str(end_year) + '" >> user_nl_datm_streams \n'
'echo "co2tseries.SSP3-7.0:year_align=' + str(start_year) + '" >> user_nl_datm_streams \n'
"\n"
"compset=`./xmlquery COMPSET --value` \n"
"CLM_USRDAT_NAME=`./xmlquery CLM_USRDAT_NAME --value` \n"
Expand Down Expand Up @@ -131,12 +113,8 @@ def write_usermods(
' echo "stream_year_last_lai=' + str(end_year) + '" >> user_nl_clm \n'
" if [[ $compset =~ ^HIST ]]; then \n"
" # for transient case with a historical compset \n"
' echo "model_year_align_lai='
+ str(start_year_actual)
+ '" >> user_nl_clm \n'
' echo "stream_year_first_lai='
+ str(start_year_actual)
+ '" >> user_nl_clm \n'
' echo "model_year_align_lai=' + str(start_year_actual) + '" >> user_nl_clm \n'
' echo "stream_year_first_lai=' + str(start_year_actual) + '" >> user_nl_clm \n'
" else \n"
" # for a spinup case with a i2000 compset \n"
' echo "model_year_align_lai=1" >> user_nl_clm \n'
Expand Down

0 comments on commit 51440f3

Please sign in to comment.