noaa-ocs-modeling / nemspy

NEMS configuration generation
https://nemspy.readthedocs.io
Creative Commons Zero v1.0 Universal
1 stars 2 forks source link

add parameters to `model_configure` #19

Open ghost opened 4 years ago

ghost commented 4 years ago

model_configure is currently mostly hardcoded; need to add parameters to the ModelConfiguration object: https://github.com/noaa-ocs-modeling/nemspy/blob/f0b9c2589464e37535b8fce89807b75696892536/nemspy/configuration.py#L373-L528

ghost commented 4 years ago

this template might be useful: https://github.com/NOAA-EMC/DATM-MOM6-CICE5/blob/ca3d21bd89f967e4c25953eaa3349829c739b528/parm/model_configure.IN#L1-L22

total_member:            1 
print_esmf:              .true.
PE_MEMBER01:             @[TASKS]
start_year:              @[SYEAR]
start_month:             @[SMONTH]
start_day:               @[SDAY]
start_hour:              @[SHOUR]
start_minute:            0
start_second:            0
nhours_fcst:             @[FHMAX]
RUN_CONTINUE:            .false.
ENS_SPS:                 .false.

dt_atmos:                   @[DT_ATMOS]
atm_coupling_interval_sec:  @[coupling_interval_fast_sec]

iatm: @[IATM]
jatm: @[JATM]

cdate0: @[CDATE]
nfhout: @[NFHOUT]
filename_base: @[FILENAME_BASE]
ghost commented 4 years ago

only these variables are required in model_configure: https://github.com/saeed-moghimi-noaa/cpl_tools/blob/4772824d21bd4e79f915a0932315fb627b6186be/01_prep/01_cpl_run_dir/00-prepare-nsemodel-run.py#L256-L264