Skip to content

Commit

Permalink
custom configs for hotfile station and history deltc
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Leighton committed Aug 9, 2024
1 parent 185e655 commit de9f441
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 12 additions & 2 deletions rompy/schism/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,20 @@ class SchismCSIROConfig(BaseConfig):
0,
description="hotstart 0: off; 1: on - whether to expect hotstarts - Default - 0-",
)
wwminput_hotfile_deltc_out: int = Field(
3600,
wwminput_hotfile_DELTC: int = Field(
0,
description="hotfile time in UNITC (typically seconds) when hotfile should be written, defaults to 3600",
)
wwminput_station_DELTC: int = Field(
3600,
description="Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)",
)
wwminput_history_DELTC: int = Field(
3600,
description="Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)",
)



# validator example - ensure the following
# Bottom friction.
Expand Down
6 changes: 3 additions & 3 deletions rompy/templates/schism/{{runtime.run_id}}/wwminput.nml
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@
BEGTC = '{{runtime.period.start.strftime("%Y%m%d.%H%M%S")}}' ! Start output time, yyyymmdd. hhmmss;
! must fit the simulation time otherwise no output.
! Default is same as PROC%BEGTC
DELTC = {{config.deltc_out}} ! Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)
DELTC = {{config.wwminput_history_DELTC}} ! Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)
UNITC = 'SEC' ! Unit
ENDTC = '{{runtime.period.end.strftime("%Y%m%d.%H%M%S")}}' ! Stop time output, yyyymmdd. hhmmss
! Default is same as PROC%ENDC
Expand Down Expand Up @@ -457,7 +457,7 @@
&STATION
BEGTC = '{{runtime.period.start.strftime("%Y%m%d.%H%M%S")}}' ! Start simulation time, yyyymmdd. hhmmss; must fit the simulation time otherwise no output
! Default is same as PROC%BEGTC
DELTC = {{config.deltc_out}} ! Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)
DELTC = {{config.wwminput_station_DELTC}} ! Time step for output; if smaller than simulation time step, the latter is used (output every step for better 1D 2D spectra analysis)
UNITC = 'SEC' ! Unit
ENDTC = '{{runtime.period.end.strftime("%Y%m%d.%H%M%S")}}' ! Stop time simulation, yyyymmdd. hhmmss
! Default is same as PROC%ENDC
Expand Down Expand Up @@ -549,7 +549,7 @@
FILEHOT_OUT = 'wwm_hot_out' !'.nc' suffix will be added
BEGTC = '{{runtime.period.start.strftime("%Y%m%d.%H%M%S")}}' !Starting time of hotfile writing. With ihot!=0 in SCHISM,
!this will be whatever the new hotstarted time is (even with ihot=2)
DELTC = {{config.wwminput_hotfile_deltc_out}}. ! time between hotfile writes
DELTC = {{config.wwminput_hotfile_DELTC}}. ! time between hotfile writes
UNITC = 'SEC' ! unit used above
ENDTC = '{{runtime.period.end.strftime("%Y%m%d.%H%M%S")}}' ! Ending time of hotfile writing (adjust with BEGTC)
LCYCLEHOT = T ! Applies only to netcdf
Expand Down

0 comments on commit de9f441

Please sign in to comment.