mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-01-01 12:06:54 -06:00
Ensure cache is updated, not only invalidated, when Newton update fails.
This commit is contained in:
parent
dd01af1f3b
commit
aa4e0d4d58
@ -1411,7 +1411,7 @@ public:
|
|||||||
// previous time step so that we can start the next
|
// previous time step so that we can start the next
|
||||||
// update at a physically meaningful solution.
|
// update at a physically meaningful solution.
|
||||||
solution(/*timeIdx=*/0) = solution(/*timeIdx=*/1);
|
solution(/*timeIdx=*/0) = solution(/*timeIdx=*/1);
|
||||||
invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
|
invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
for (unsigned timeIdx = 0; timeIdx < historySize; ++timeIdx) {
|
for (unsigned timeIdx = 0; timeIdx < historySize; ++timeIdx) {
|
||||||
|
Loading…
Reference in New Issue
Block a user