Support older versions of Dune

Retrieving the "mpihelper.hh" from <dune/common> rather than
<dune/common/parallel> means we can still support (e.g.,) Dune 2.2.1
if needed.
This commit is contained in:
Bård Skaflestad 2014-04-10 00:59:31 +02:00
parent 433be936e4
commit 897a33c788
2 changed files with 7 additions and 1 deletions

View File

@ -46,7 +46,7 @@ include (${project}-prereqs)
include (CMakeLists_files.cmake)
macro (config_hook)
# opm_need_version_of ("dune-common")
opm_need_version_of ("dune-common")
endmacro (config_hook)
macro (prereqs_hook)

View File

@ -23,7 +23,13 @@
#include "config.h"
#endif // HAVE_CONFIG_H
#include <dune/common/version.hh>
#if DUNE_VERSION_NEWER(DUNE_COMMON, 2, 3)
#include <dune/common/parallel/mpihelper.hh>
#else
#include <dune/common/mpihelper.hh>
#endif
#include <opm/core/pressure/FlowBCManager.hpp>