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

[test][navierstokes][donea] use new istl solver factory backend

parent e526764b
......@@ -42,6 +42,7 @@
#include <dumux/nonlinear/newtonsolver.hh>
#include <dumux/linear/linearsolvertraits.hh>
#include <dumux/linear/algebratraits.hh>
#include <dumux/linear/istlsolverfactorybackend.hh>
#include "properties_momentum.hh"
......@@ -153,7 +154,8 @@ int main(int argc, char** argv)
using Assembler = FVAssembler<TypeTag, DiffMethod::numeric>;
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables);
using LinearSolver = IstlSolverFactoryBackend<LinearSolverTraits<GridGeometry>>;
using LinearSolver = IstlSolverFactoryBackend<LinearSolverTraits<GridGeometry>,
LinearAlgebraTraitsFromAssembler<Assembler>>;
const auto dofMapper = LinearSolverTraits<GridGeometry>::DofMapper(gridGeometry->gridView());
auto linearSolver = std::make_shared<LinearSolver>(gridGeometry->gridView(), dofMapper);
......
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