mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Updated check for umfpack for (opm-core) implicit solver.
This commit is contained in:
parent
82f3aba1af
commit
f83c03de63
@ -83,11 +83,12 @@ main(int argc, char** argv)
|
|||||||
// This is an extra check to intercept a potentially invalid request for the
|
// This is an extra check to intercept a potentially invalid request for the
|
||||||
// implicit transport solver as early as possible for the user.
|
// implicit transport solver as early as possible for the user.
|
||||||
{
|
{
|
||||||
const bool use_reorder = param.getDefault("use_reorder", true);
|
const std::string transport_solver_type
|
||||||
if (!use_reorder) {
|
= param.getDefault<std::string>("transport_solver_type", "ad");
|
||||||
|
if (transport_solver_type == "implicit") {
|
||||||
THROW("Cannot use implicit transport solver without UMFPACK. "
|
THROW("Cannot use implicit transport solver without UMFPACK. "
|
||||||
"Either reconfigure opm-core with SuiteSparse/UMFPACK support and recompile, "
|
"Either reconfigure opm-core with SuiteSparse/UMFPACK support and recompile, "
|
||||||
"or use the reordering solver (use_reorder=true).");
|
"or use the reordering solver (transport_solver_type=reorder).");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user