Ensure cache is updated, not only invalidated, when Newton update fails.

This commit is contained in:
Atgeirr Flø Rasmussen 2022-08-04 15:18:32 +02:00
parent dd01af1f3b
commit aa4e0d4d58

View File

@ -1411,7 +1411,7 @@ public:
// previous time step so that we can start the next
// update at a physically meaningful solution.
solution(/*timeIdx=*/0) = solution(/*timeIdx=*/1);
invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
invalidateAndUpdateIntensiveQuantities(/*timeIdx=*/0);
#ifndef NDEBUG
for (unsigned timeIdx = 0; timeIdx < historySize; ++timeIdx) {