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

Change defaults #156

Merged
merged 5 commits into from
Dec 22, 2023
Merged

Change defaults #156

merged 5 commits into from
Dec 22, 2023

Conversation

roeldegoede
Copy link
Collaborator

@roeldegoede roeldegoede commented Dec 7, 2023

Issue addressed

Explanation

If dtmaxout is larger then tstop-tstart, SFINCS writes the maximum outputs over the entire simulation. However, if dtmaxout is smaller than this, it only seems to write the outputs for the 2nd and higher intervals if the entire interval passed. The default value of the dtmaxout was 99999, which is only slightly more than 1 day. For simulations longer than 1 day, but less than x*99999, with the peak water levels in the x'th interval, this resulted in missing the peak water levels in the zsmax output.

Checklist

  • Updated tests or added new tests
  • Branch is up to date with main
  • Updated documentation if needed
  • Updated changelog.rst if needed

Additional Notes (optional)

The new default value might still be small? Are there more elegant ways to do this, instead of just making it even bigger? And shouldn't we ensure in SFINCS that even when the last interval is not fully finished, it still writes away the maximum outputs over the unfinished interval?

@roeldegoede roeldegoede requested a review from Leynse December 7, 2023 14:48
@roeldegoede
Copy link
Collaborator Author

Are there more default values we should change?

@roeldegoede
Copy link
Collaborator Author

To do: change dtmaxout in 1, 10 of 100 days instead of random big number that suggests to take the maximum over the entire simulation.

Deltares/SFINCS#64 ensures that even for unfinished maximum-intervals at the end of the simulation, the maximum outputs are written in the file. Therefore, the maximum over the maximum output now also always is the maximum of the simulation.

So, I think dtmaxout=86400 (=1 day) would be a good new default value.

@DirkEilander
Copy link
Contributor

DirkEilander commented Dec 22, 2023

So, I think dtmaxout=86400 (=1 day) would be a good new default value.

I've just updated this when merging main into this branch.

@roeldegoede roeldegoede merged commit d957147 into main Dec 22, 2023
6 checks passed
@DirkEilander DirkEilander deleted the change_defaults branch December 22, 2023 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mod.results['zsmax'] returns values much smaller than np.nanmax(mod.results['zs'])
2 participants