Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually add vegetation core param #80

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Changes from all commits
Commits
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
8 changes: 8 additions & 0 deletions stormworkflow/prep/setup_ensemble.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ def _fix_hotstart_issue(ensemble_dir):
nm_list['opt']['drampwind'] = 0.0
nm_list.write(pth / 'param.nml', force=True)

def _fix_veg_parameter_issue(ensemble_dir):
# See https://github.com/schism-dev/pyschism/issues/126
param_nmls = ensemble_dir.glob('**/param.nml')
for pth in param_nmls:
nm_list = f90nml.read(pth)
nm_list['core']['nbins_veg_vert'] = 2
nm_list.write(pth, force=True)

def main(args):

Expand Down Expand Up @@ -277,6 +284,7 @@ def main(args):
)

_fix_hotstart_issue(workdir)
_fix_veg_parameter_issue(workdir) # For newer SCHISM version
if with_hydrology:
_fix_nwm_issues(workdir, hires_reg)
if use_wwm:
Expand Down