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

lower reltol from 1e-3 to 1e-5 #773

Merged
merged 2 commits into from
Nov 13, 2023
Merged

lower reltol from 1e-3 to 1e-5 #773

merged 2 commits into from
Nov 13, 2023

Conversation

visr
Copy link
Member

@visr visr commented Nov 10, 2023

@harm-nomden-sweco shared a case where a pump is emptying a basin with an inflow smaller than the pump capacity. We know this case leads to small timesteps, but it appeared this also led to large errors in the water balance. This lowering of the reltol is enough to fix that issue. Since such a case can be common, it is good to have a safe default.

This also adds using Test to all test files. And test/time.jl needed some refactoring since there were a few sub-millisecond timesteps, whereas we round our time to milliseconds.

@visr visr requested a review from SouthEndMusic November 13, 2023 13:48
Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@visr visr merged commit 0b74383 into main Nov 13, 2023
15 checks passed
@visr visr deleted the reltol branch November 13, 2023 14:39
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.

2 participants