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

fluids: Stats don't overwrite solution on first-step failure #1452

Merged
merged 1 commit into from
Jan 27, 2024

Conversation

jrwrigh
Copy link
Collaborator

@jrwrigh jrwrigh commented Jan 27, 2024

When you have an initial condition from a previous problem, it might fail on the first step. This will cause reason != TS_CONVERGED_ITERATING and thus it will continue on with the rest of the TSMonitor routine. If you have a stats file from that initial condition, it will be overwritten.

Regardless of the overwriting behavior, it never makes sense to write out a stats file on the first step; Using left-rectangle rule for the time averaging integration, the initial step should never be used, thus there is nothing to collect or write.

- When you have an initial condition from a previous problem, it might
  fail on the first step. This will cause `reason != TS_CONVERGED_ITERATING`
  and thus it will continue on with the rest of the TSMonitor routine.
  If you have a stats file from that initial condition, it will be
  overwritten.

  Regardless of the overwriting behavior, it *never* makes sense to
  write out a stats file on the first step; Using left-rectangle rule
  for the time averaging integration, the initial step should *never* be
  used, thus there is nothing to collect or write.
@jrwrigh jrwrigh merged commit cce69b9 into main Jan 27, 2024
28 checks passed
@jrwrigh jrwrigh deleted the jrwrigh/stats_overwrite branch January 27, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants