Do not add additional entries to matrix when not adding well contributions.

This commit is contained in:
Markus Blatt 2018-03-02 20:51:30 +01:00
parent b276aaa16b
commit af3c45dd6a

View File

@ -179,12 +179,12 @@ public:
WellState wellStateDummy; //not used. Only passed to make the old interfaces happy 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_ )
// { {
ebosSimulator_.model().clearAuxiliaryModules(); ebosSimulator_.model().clearAuxiliaryModules();
auto auxMod = std::make_shared<WellConnectionAuxiliaryModule<TypeTag> >(schedule(), grid()); auto auxMod = std::make_shared<WellConnectionAuxiliaryModule<TypeTag> >(schedule(), grid());
ebosSimulator_.model().addAuxiliaryModule(auxMod); ebosSimulator_.model().addAuxiliaryModule(auxMod);
// } }
// Main simulation loop. // Main simulation loop.
while (!timer.done()) { while (!timer.done()) {