mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
added: MultisegmentWellEquations::apply(r)
this applies the equation system to a vector. use the new method in the well implementation.
This commit is contained in:
@@ -217,14 +217,11 @@ namespace Opm
|
||||
MultisegmentWell<TypeTag>::
|
||||
apply(BVector& r) const
|
||||
{
|
||||
if (!this->isOperableAndSolvable() && !this->wellIsStopped()) return;
|
||||
if (!this->isOperableAndSolvable() && !this->wellIsStopped()) {
|
||||
return;
|
||||
}
|
||||
|
||||
// invDrw_ = duneD^-1 * resWell_
|
||||
const BVectorWell invDrw = mswellhelpers::applyUMFPack(this->linSys_.duneD_,
|
||||
this->linSys_.duneDSolver_,
|
||||
this->linSys_.resWell_);
|
||||
// r = r - duneC_^T * invDrw
|
||||
this->linSys_.duneC_.mmtv(invDrw, r);
|
||||
this->linSys_.apply(r);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user