Commit 430eb25a authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

hide UmfpackRunner, if umfpack is not available

parent 5d5e8c7d
#pragma once #pragma once
#include "itl/block_diagonal.hpp"
#include <dune/amdis/CreatorMap.hpp> #include <dune/amdis/CreatorMap.hpp>
#include <dune/amdis/linear_algebra/mtl/ITL_Preconditioner.hpp> #include <dune/amdis/linear_algebra/mtl/ITL_Preconditioner.hpp>
#include "itl/block_diagonal.hpp"
namespace AMDiS namespace AMDiS
{ {
......
...@@ -67,10 +67,12 @@ namespace AMDiS ...@@ -67,10 +67,12 @@ namespace AMDiS
auto gcr = new SolverCreator<gcr_type>; auto gcr = new SolverCreator<gcr_type>;
Map::addCreator("gcr", gcr); Map::addCreator("gcr", gcr);
#ifdef HAVE_UMFPACK
auto umfpack = new UmfpackSolverCreator; auto umfpack = new UmfpackSolverCreator;
Map::addCreator("umfpack", umfpack); Map::addCreator("umfpack", umfpack);
Map::addCreator("direct", umfpack); Map::addCreator("direct", umfpack);
#endif
Map::addCreator("default", gmres); Map::addCreator("default", gmres);
} }
......
...@@ -460,9 +460,11 @@ namespace AMDiS ...@@ -460,9 +460,11 @@ namespace AMDiS
auto preonly = new SolverCreator<preonly_type>; auto preonly = new SolverCreator<preonly_type>;
Map::addCreator("preonly", preonly); Map::addCreator("preonly", preonly);
#ifdef HAVE_UMFPACK
auto umfpack = new UmfpackSolverCreator; auto umfpack = new UmfpackSolverCreator;
Map::addCreator("umfpack", umfpack); Map::addCreator("umfpack", umfpack);
Map::addCreator("direct", umfpack); Map::addCreator("direct", umfpack);
#endif
Map::addCreator("default", gmres); Map::addCreator("default", gmres);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment