Ensure UMFPACK works with FlexibleSolver.

Every apply() call for UMFPACK must (for now) recreate the solver.
This commit is contained in:
Atgeirr Flø Rasmussen
2023-06-09 13:44:58 +02:00
parent b1ffc68853
commit 7f96922c3c
2 changed files with 30 additions and 2 deletions

View File

@@ -88,6 +88,8 @@ private:
void initSolver(const Opm::PropertyTree& prm, const bool is_iorank);
void recreateDirectSolver();
// Main initialization routine.
// Call with Comm == Dune::Amg::SequentialInformation to get a serial solver.
template <class Comm>
@@ -101,6 +103,7 @@ private:
std::shared_ptr<AbstractPrecondType> preconditioner_;
std::shared_ptr<AbstractScalarProductType> scalarproduct_;
std::shared_ptr<AbstractSolverType> linsolver_;
bool direct_solver_ = false;
};
} // namespace Dune