mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Add NLDD nonlinear solver option.
This commit is contained in:
@@ -96,6 +96,10 @@ setupPropertyTree(FlowLinearSolverParameters p, // Note: copying the parameters
|
||||
return setupILU(conf, p);
|
||||
}
|
||||
|
||||
if (conf == "umfpack") {
|
||||
return setupUMFPack(conf, p);
|
||||
}
|
||||
|
||||
// At this point, the only separate ISAI implementation is with the OpenCL code, and
|
||||
// it will check this argument to see if it should be using ISAI. The parameter tree
|
||||
// will be ignored, so this is just a dummy configuration to avoid the throw below.
|
||||
@@ -263,4 +267,15 @@ setupILU([[maybe_unused]] const std::string& conf, const FlowLinearSolverParamet
|
||||
}
|
||||
|
||||
|
||||
PropertyTree
|
||||
setupUMFPack([[maybe_unused]] const std::string& conf, const FlowLinearSolverParameters& p)
|
||||
{
|
||||
using namespace std::string_literals;
|
||||
PropertyTree prm;
|
||||
prm.put("verbosity", p.linear_solver_verbosity_);
|
||||
prm.put("solver", "umfpack"s);
|
||||
return prm;
|
||||
}
|
||||
|
||||
|
||||
} // namespace Opm
|
||||
|
||||
Reference in New Issue
Block a user