diff --git a/opm/simulators/wells/MultisegmentWellEquations.cpp b/opm/simulators/wells/MultisegmentWellEquations.cpp index 3be842cc44..305eaa8335 100644 --- a/opm/simulators/wells/MultisegmentWellEquations.cpp +++ b/opm/simulators/wells/MultisegmentWellEquations.cpp @@ -156,6 +156,7 @@ apply(const BVector& x, BVector& Ax) const this->pw_info_.communication().sum(Bx.data(), Bx.size()); // invDBx = duneD^-1 * Bx_ + // TODO: do this only on one process and distribute the solution const BVectorWell invDBx = mswellhelpers::applyUMFPack(*duneDSolver_, Bx); // Ax = Ax - duneC_^T * invDBx @@ -167,6 +168,7 @@ void MultisegmentWellEquations:: apply(BVector& r) const { // invDrw_ = duneD^-1 * resWell_ + // TODO: do this only on one process and distribute the solution const BVectorWell invDrw = mswellhelpers::applyUMFPack(*duneDSolver_, resWell_); // r = r - duneC_^T * invDrw duneC_.mmtv(invDrw, r); @@ -196,6 +198,7 @@ template typename MultisegmentWellEquations::BVectorWell MultisegmentWellEquations::solve() const { + // TODO: do this only on one process and distribute the solution return mswellhelpers::applyUMFPack(*duneDSolver_, resWell_); } @@ -203,6 +206,7 @@ template typename MultisegmentWellEquations::BVectorWell MultisegmentWellEquations::solve(const BVectorWell& rhs) const { + // TODO: do this only on one process and distribute the solution return mswellhelpers::applyUMFPack(*duneDSolver_, rhs); } @@ -220,6 +224,7 @@ recoverSolutionWell(const BVector& x, BVectorWell& xw) const resWell -= Bx; // xw = D^-1 * resWell + // TODO: do this only on one process and distribute the solution xw = mswellhelpers::applyUMFPack(*duneDSolver_, resWell); }