MSWellHelpers: simplify interfaces

- avoid passing the matrix, only pass the solver. possible
  since setting up the solver is not done in here any more.
- avoid passing shared_ptr's
This commit is contained in:
Arne Morten Kvarving
2022-12-01 11:14:55 +01:00
parent e67e58d0c8
commit a7cb444328
5 changed files with 26 additions and 34 deletions

View File

@@ -400,7 +400,7 @@ recoverSolutionWell(const BVector& x, BVectorWell& xw) const
// resWell = resWell - B * x
linSys_.duneB_.mmv(x, resWell);
// xw = D^-1 * resWell
xw = mswellhelpers::applyUMFPack(linSys_.duneD_, linSys_.duneDSolver_, resWell);
xw = mswellhelpers::applyUMFPack(*linSys_.duneDSolver_, resWell);
}
template<typename FluidSystem, typename Indices, typename Scalar>