Merge pull request #1425 from totto82/fix_enable_storage_term_false

Bugfix. enableStorageCache=false
This commit is contained in:
Atgeirr Flø Rasmussen 2018-03-09 14:13:10 +01:00 committed by GitHub
commit 1380564256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -174,15 +174,10 @@ namespace Opm {
{
// update the solution variables in ebos
// if the last time step failed we need to update the curent solution
// and recalculate the Intesive Quantities.
if ( timer.lastStepFailed() ) {
ebosSimulator_.model().solution( 0 /* timeIdx */ ) = ebosSimulator_.model().solution( 1 /* timeIdx */ );
ebosSimulator_.model().invalidateIntensiveQuantitiesCache(/*timeIdx=*/0);
ebosSimulator_.model().updateFailed();
} else {
// set the initial solution.
ebosSimulator_.model().solution( 1 /* timeIdx */ ) = ebosSimulator_.model().solution( 0 /* timeIdx */ );
ebosSimulator_.model().advanceTimeLevel();
}
// set the timestep size and index in ebos explicitly