mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: StandardWellEquations::clear
this zeros the equation system. use the new method in the well implementation.
This commit is contained in:
parent
a8c912ccfa
commit
d05081417e
@ -35,6 +35,16 @@ StandardWellEquations(const ParallelWellInfo& parallel_well_info)
|
|||||||
invDuneD_.setBuildMode(DiagMatWell::row_wise);
|
invDuneD_.setBuildMode(DiagMatWell::row_wise);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
template<class Scalar, int numEq>
|
||||||
|
void StandardWellEquations<Scalar,numEq>::clear()
|
||||||
|
{
|
||||||
|
duneB_ = 0.0;
|
||||||
|
duneC_ = 0.0;
|
||||||
|
duneD_ = 0.0;
|
||||||
|
resWell_ = 0.0;
|
||||||
|
}
|
||||||
|
|
||||||
#define INSTANCE(N) \
|
#define INSTANCE(N) \
|
||||||
template class StandardWellEquations<double,N>;
|
template class StandardWellEquations<double,N>;
|
||||||
|
|
||||||
|
@ -60,6 +60,9 @@ public:
|
|||||||
|
|
||||||
StandardWellEquations(const ParallelWellInfo& parallel_well_info);
|
StandardWellEquations(const ParallelWellInfo& parallel_well_info);
|
||||||
|
|
||||||
|
//! \brief Set all coefficients to 0.
|
||||||
|
void clear();
|
||||||
|
|
||||||
// two off-diagonal matrices
|
// two off-diagonal matrices
|
||||||
OffDiagMatWell duneB_;
|
OffDiagMatWell duneB_;
|
||||||
OffDiagMatWell duneC_;
|
OffDiagMatWell duneC_;
|
||||||
|
@ -432,10 +432,7 @@ namespace Opm
|
|||||||
if (!this->isOperableAndSolvable() && !this->wellIsStopped()) return;
|
if (!this->isOperableAndSolvable() && !this->wellIsStopped()) return;
|
||||||
|
|
||||||
// clear all entries
|
// clear all entries
|
||||||
this->linSys_.duneB_ = 0.0;
|
this->linSys_.clear();
|
||||||
this->linSys_.duneC_ = 0.0;
|
|
||||||
this->linSys_.duneD_ = 0.0;
|
|
||||||
this->linSys_.resWell_ = 0.0;
|
|
||||||
|
|
||||||
assembleWellEqWithoutIterationImpl(ebosSimulator, dt, well_state, group_state, deferred_logger);
|
assembleWellEqWithoutIterationImpl(ebosSimulator, dt, well_state, group_state, deferred_logger);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user