-
Notifications
You must be signed in to change notification settings - Fork 383
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
Ocean conservation check accumulated sums set to zero at restart. #6642
Comments
@xylar can you describe the problem in more detail here? I ran tests and I don’t see what you are seeing. I ran QU240 with
writing restarts every month. For reference, I used
I can’t find any zeroing behavior in any variables with master at the month break (2). For example,
ends with exactly the same value with or without the restart (case 1 and 2 above) for month 2. Also, these values are not increasing, so it is accumulated within each daily interval, and then zeroed after writing this daily value. So users have to accumulate the sums themselves. What variable(s) did you see it in? Could you provide a path? |
Thanks @mark-petersen. I didn't appreciate that the conservation check is just computing daily totals. I seem to be mistaken that restart files are needed, in that case. However, your run does show the same issues that I was seeing. It isn't for all variables, and now it becomes clear that that might not be expected. But many variables in your output file above do show strange behavior as I was seeing after restarts:
As one example:
Many, many variables show zeros at the beginning of the compute interval. I now believe this may be a truncate vs. append issue similar to what we fixed in #6434 |
I believe we always want:
I think the odd values we're seeing above are related to certain conservation terms not being computed correctly on startup. Then, I think we also want
Otherwise, the entry with I ran to QU240 G-cases for 10 months with a restart after 5 months. In both cases, I was not computing/writing on startup. In one case, I was using
For the one with
Other months are complete in both runs, so the issue is clearly related to restarts. |
Thanks @xylar for the clarification. I was thinking the same thing, and will change these three items in the PR.
|
@mark-petersen, please consider just using my branch (https://github.com/xylar/E3SM/commits/mark-petersen/mpas/correct-conservation-check/) rather than duplicating efforts. |
Updated the description. |
…t (PR #6643) Correct ocean conservation check settings Currently, the ocean conservation check analysis member overwrites the first entry in the file with a zero after restarts for some variables. This PR corrects this behavior so that the first day's entry in a monthly conservation check file is identical between continuous runs and a run with a restart break. Adds a new mpaso testdef and corresponding stealth test. Fixes #6642 [NML] for some mpaso resolutions [BFB]
The ocean conservation check analysis member overwrites the first entry in the file with a zero after restarts for some variables. The result is that the first day's entry in a monthly conservation check file is correct for continuous runs but zero for a run with a restart break, for some variables.
The text was updated successfully, but these errors were encountered: