Skip to content
Snippets Groups Projects
Commit 55c866b6 authored by Kilian Weishaupt's avatar Kilian Weishaupt
Browse files

[linear][istlsolverfactorybackend] Make compile with dune-2.7

parent 32db16a9
No related branches found
No related tags found
1 merge request!2010Fix istl solver factory + uzawa for dune-2.7
This commit is part of merge request !2010. Comments created here will be created in the context of that merge request.
......@@ -26,8 +26,9 @@
#ifndef DUMUX_LINEAR_ISTL_SOLVERFACTORYBACKEND_HH
#define DUMUX_LINEAR_ISTL_SOLVERFACTORYBACKEND_HH
#include <dune/common/version.hh>
#include <memory>
#include <dune/common/version.hh>
#include <dune/common/parallel/mpihelper.hh>
#include <dune/common/parametertree.hh>
......@@ -70,7 +71,11 @@ int initSolverFactoriesForMultiTypeBlockMatrix()
using TL = Dune::TypeList<M,X,Y>;
auto& dsfac = Dune::DirectSolverFactory<M,X,Y>::instance();
Dune::addRegistryToFactory<TL>(dsfac, Dumux::MultiTypeBlockMatrixDirectSolverTag{});
#if DUNE_VERSION_GT(DUNE_ISTL,2,7)
auto& pfac = Dune::PreconditionerFactory<LinearOperator,X,Y>::instance();
#else
auto& pfac = Dune::PreconditionerFactory<M,X,Y>::instance();
#endif
Dune::addRegistryToFactory<TL>(pfac, Dumux::MultiTypeBlockMatrixPreconditionerTag{});
using TLS = Dune::TypeList<X,Y>;
auto& isfac = Dune::IterativeSolverFactory<X,Y>::instance();
......
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