From daebf8b737af4645cefce67abd6399bdfae00aa8 Mon Sep 17 00:00:00 2001
From: Kilian <kilian.weishaupt@iws.uni-stuttgart.de>
Date: Fri, 3 Apr 2020 11:36:35 +0200
Subject: [PATCH] [test][kovasznay] Use UzawaBiCGSTABBackend in test

---
 test/freeflow/navierstokes/kovasznay/main.cc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/freeflow/navierstokes/kovasznay/main.cc b/test/freeflow/navierstokes/kovasznay/main.cc
index 903a1f7179..77175fa6c4 100644
--- a/test/freeflow/navierstokes/kovasznay/main.cc
+++ b/test/freeflow/navierstokes/kovasznay/main.cc
@@ -32,6 +32,7 @@
 #include <dune/grid/io/file/dgfparser/dgfexception.hh>
 #include <dune/grid/io/file/vtk.hh>
 #include <dune/istl/io.hh>
+#include <dune/common/version.hh>
 
 #include <dumux/assembly/staggeredfvassembler.hh>
 #include <dumux/assembly/diffmethod.hh>
@@ -44,6 +45,10 @@
 #include <dumux/linear/seqsolverbackend.hh>
 #include <dumux/nonlinear/newtonsolver.hh>
 
+#if DUNE_VERSION_GTE(DUNE_ISTL,2,7)
+#include <dumux/linear/linearsolvertraits.hh>
+#endif
+
 #include "problem.hh"
 
 int main(int argc, char** argv) try
@@ -108,7 +113,11 @@ int main(int argc, char** argv) try
     auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables);
 
     // the linear solver
+#if DUNE_VERSION_GTE(DUNE_ISTL,2,7)
+    using LinearSolver = Dumux::UzawaBiCGSTABBackend<LinearSolverTraits<GridGeometry>>;
+#else
     using LinearSolver = Dumux::UMFPackBackend;
+#endif
     auto linearSolver = std::make_shared<LinearSolver>();
 
     // the non-linear solver
-- 
GitLab