mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4662 from atgeirr/update-iq-1
Update timeIdx 1 intensive quantities if necessary.
This commit is contained in:
commit
8fac5efea0
@ -1744,7 +1744,17 @@ public:
|
||||
*/
|
||||
void initialSolutionApplied()
|
||||
{
|
||||
// Calculate all intensive quantities.
|
||||
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx*/0);
|
||||
|
||||
// We also need the intensive quantities for timeIdx == 1
|
||||
// corresponding to the start of the current timestep, if we
|
||||
// do not use the storage cache, or if we cannot recycle the
|
||||
// first iteration storage.
|
||||
if (!this->model().enableStorageCache() || !this->recycleFirstIterationStorage()) {
|
||||
this->model().invalidateAndUpdateIntensiveQuantities(/*timeIdx*/1);
|
||||
}
|
||||
|
||||
// initialize the wells. Note that this needs to be done after initializing the
|
||||
// intrinsic permeabilities and the after applying the initial solution because
|
||||
// the well model uses these...
|
||||
|
Loading…
Reference in New Issue
Block a user