Make code compile with dune trunk version (ie 3.0-git). This should include support for

dune 2.3.
This commit is contained in:
Robert Kloefkorn
2014-08-06 14:00:54 +02:00
parent 115914119b
commit 39e0a2b7c4
2 changed files with 9 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ include (${project}-prereqs)
include (CMakeLists_files.cmake) include (CMakeLists_files.cmake)
macro (config_hook) macro (config_hook)
# opm_need_version_of ("dune-common") opm_need_version_of ("dune-common")
opm_need_version_of ("dune-istl") opm_need_version_of ("dune-istl")
endmacro (config_hook) endmacro (config_hook)
+8
View File
@@ -30,11 +30,19 @@
// MPI header // MPI header
#if HAVE_MPI #if HAVE_MPI
#include <mpi.h> #include <mpi.h>
#include <dune/common/version.hh>
#include <dune/common/parallel/indexset.hh> #include <dune/common/parallel/indexset.hh>
#include <dune/common/parallel/communicator.hh> #include <dune/common/parallel/communicator.hh>
#include <dune/common/parallel/remoteindices.hh> #include <dune/common/parallel/remoteindices.hh>
#include <dune/common/version.hh>
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 3)
#include <dune/common/parallel/mpicollectivecommunication.hh>
#include <dune/common/parallel/collectivecommunication.hh>
#else
#include <dune/common/mpicollectivecommunication.hh> #include <dune/common/mpicollectivecommunication.hh>
#include <dune/common/collectivecommunication.hh> #include <dune/common/collectivecommunication.hh>
#endif
#include <dune/istl/owneroverlapcopy.hh> #include <dune/istl/owneroverlapcopy.hh>
#include <opm/core/linalg/ParallelIstlInformation.hpp> #include <opm/core/linalg/ParallelIstlInformation.hpp>
#else #else