From 39e0a2b7c472f83960cd357723ae752e706cf27f Mon Sep 17 00:00:00 2001 From: Robert Kloefkorn Date: Wed, 6 Aug 2014 14:00:54 +0200 Subject: [PATCH] Make code compile with dune trunk version (ie 3.0-git). This should include support for dune 2.3. --- CMakeLists.txt | 2 +- tests/test_parallel_linearsolver.cpp | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48a52549..b33356d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -45,7 +45,7 @@ include (${project}-prereqs) include (CMakeLists_files.cmake) macro (config_hook) -# opm_need_version_of ("dune-common") + opm_need_version_of ("dune-common") opm_need_version_of ("dune-istl") endmacro (config_hook) diff --git a/tests/test_parallel_linearsolver.cpp b/tests/test_parallel_linearsolver.cpp index 8fc3833d..3ca362a4 100644 --- a/tests/test_parallel_linearsolver.cpp +++ b/tests/test_parallel_linearsolver.cpp @@ -30,11 +30,19 @@ // MPI header #if HAVE_MPI #include +#include #include #include #include +#include +#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 3) +#include +#include +#else #include #include +#endif + #include #include #else