Ensure correct summary output for iteration counts.#6720
Conversation
|
jenkins build this please |
| full_report += substep_report; | ||
| problem.setSimulationReport(full_report); | ||
| // This also runs the evalSummary() and action updates. | ||
| problem.endStepApplyAction(); |
There was a problem hiding this comment.
Not sure it is relevant right now, but FlowProblemComp does not have this method.
There was a problem hiding this comment.
I see it is all done in endTimeStep(). If we do the same modification there it should become correct.
The test failures are all expected (only modifying the data I wanted to) except the last one (flowexp_blackoil_SPE1CASE2) which I will need to investigate.
f2db002 to
0a93c74
Compare
|
jenkins build this please |
0a93c74 to
e4b4bfc
Compare
|
jenkins build this please |
1 similar comment
|
jenkins build this please |
|
All failures are now in the expected fields and should be corrections compared to the reference. |
Okay, but just to simplify the review I'll create a "failure report" for visual inspection. |
|
jenkins build this failure_report please |
I've looked at the failure report now and I agree that the effect of this work is as promised. I'll review the implementation now. |
|
I'd prefer if we did not have to introduce the Could we achieve a similar effect to this PR if we instead made |
e4b4bfc to
3c53df1
Compare
|
Refactored as requested. A followup should be to remove the prepareStep() method as well, replacing it with calls to beginTimeStep() outside the NonlinearSolver::step() method, but that is not required now I think. |
|
jenkins build this please |
|
jenkins build this failure_report please |
bska
left a comment
There was a problem hiding this comment.
Refactored as requested.
Thanks a lot for the updates. This looks good to me now and I've verified that it still does what it's supposed to do. I'll update the reference solutions and merge this now.
A followup should be to remove the prepareStep() method as well, replacing it with calls to beginTimeStep() outside the NonlinearSolver::step() method, but that is not required now I think
I think that's a good plan for follow-up work.
|
jenkins build this update_data please |
Reason: PR OPM/opm-simulators#6720 opm-common = 791a4b71bed5b2f848918af1e994dcc030b94c0a opm-grid = c343380b8b3741038959c4719e3ab66034c7e436 opm-simulators = 673ce2ae63bb3670b95f27e7b88a6812b29a0787 ### Changed Tests ### * gasoil_precsalt * udt-1d-03 * spe1case2_krnum * norne_reperf * base_model_1 * udt-1d-01b * network-01_standard * udt-1d-02 * udt-1d-01 * msw_model_1 * faults_model_1 * fpr_nonhc
|
jenkins build this opm-tests=1464 please |
Automatic Reference Data Update for PR OPM/opm-simulators#6720
The new reference solutions have been installed on the CI system so I'll merge this into master. Thanks a lot for identifying and fixing this problem. |
Summary NEWTON array (and similar) is off by one, and wrong after a timestep cut.