Skip to content
Snippets Groups Projects
Commit 93791713 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[solver.istl] allow superlu if mpi was found, closes #14

parent ab9486b6
No related branches found
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ public:
{
return
{
#if !HAVE_MPI && HAVE_SUPERLU
#if HAVE_SUPERLU
"superlu",
#endif
"bicgstab.amg.ssor", "bicgstab.amg.ilu0", "bicgstab.ilut", "bicgstab.ssor", "bicgstab"
......@@ -163,10 +163,10 @@ public:
} else if (tp == "umfpack") {
return general_opts;
#endif
#if !HAVE_MPI && HAVE_SUPERLU
#if HAVE_SUPERLU
} else if (tp == "superlu") {
return general_opts;
#endif // !HAVE_MPI && HAVE_SUPERLU
#endif
} else
DUNE_THROW(Common::Exceptions::internal_error, "Given solver type '" << tp << "' has no default options");
return Common::Configuration();
......@@ -268,13 +268,13 @@ public:
opts.get("verbose", default_opts.get<int>("verbose")));
solver.apply(solution.backend(), writable_rhs.backend(), solver_result);
#endif // HAVE_UMFPACK
#if !HAVE_MPI && HAVE_SUPERLU
#if HAVE_SUPERLU
} else if (type == "superlu") {
SuperLU<typename MatrixType::BackendType> solver(matrix_.backend(),
opts.get("verbose", default_opts.get<int>("verbose")));
solver.apply(solution.backend(), writable_rhs.backend(), solver_result);
#endif // !HAVE_MPI && HAVE_SUPERLU
#endif // HAVE_SUPERLU
} else
DUNE_THROW(Common::Exceptions::internal_error,
"Given type '" << type << "' is not supported, although it was reported by types()!");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment