Commit bdb3c312 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

el1p2c and el2p: do not require SuperLU to compile. Give a warning for el2p if...

el1p2c and el2p: do not require SuperLU to compile. Give a warning for el2p if SuperLU is not found.

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11523 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 030a27d3
......@@ -122,7 +122,12 @@ public:
// use the SuperLU linear solver by default
#if HAVE_SUPERLU
SET_TYPE_PROP(BoxElasticTwoP, LinearSolver, Dumux::SuperLUBackend<TypeTag> );
#else
#warning no SuperLU detected, defaulting to ILU0BiCGSTAB. For many problems, the el2p model requires a direct solver.
SET_TYPE_PROP(BoxElasticTwoP, LinearSolver, Dumux::ILU0BiCGSTABBackend<TypeTag> );
#endif
// set the grid operator
SET_PROP(BoxElasticTwoP, GridOperator)
......
......@@ -82,8 +82,9 @@ namespace Dumux
SET_BOOL_PROP(El1P2CProblem, ImplicitWithStabilization, true);
// Apply superlu as linear solver
#if HAVE_SUPERLU
SET_TYPE_PROP(El1P2CProblem, LinearSolver, Dumux::SuperLUBackend<TypeTag> );
#endif
}
/*!
......
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