diff --git a/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp b/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp index 08aa61335..4c806f7a0 100644 --- a/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp +++ b/opm/autodiff/SimulatorFullyImplicitBlackoilEbos.hpp @@ -179,7 +179,8 @@ public: WellState wellStateDummy; //not used. Only passed to make the old interfaces happy - if ( model_param_.matrix_add_well_contributions_ ) + if ( model_param_.matrix_add_well_contributions_ || + model_param_.preconditioner_add_well_contributions_ ) { ebosSimulator_.model().clearAuxiliaryModules(); auto auxMod = std::make_shared >(schedule(), grid());