mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Do not add additional entries to matrix when not adding well contributions.
This commit is contained in:
parent
b276aaa16b
commit
af3c45dd6a
@ -179,12 +179,12 @@ 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_ )
|
||||
{
|
||||
ebosSimulator_.model().clearAuxiliaryModules();
|
||||
auto auxMod = std::make_shared<WellConnectionAuxiliaryModule<TypeTag> >(schedule(), grid());
|
||||
ebosSimulator_.model().addAuxiliaryModule(auxMod);
|
||||
// }
|
||||
}
|
||||
|
||||
// Main simulation loop.
|
||||
while (!timer.done()) {
|
||||
|
Loading…
Reference in New Issue
Block a user