mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-24 16:30:02 -06:00
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:
parent
433be936e4
commit
897a33c788
@ -46,7 +46,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")
|
||||||
endmacro (config_hook)
|
endmacro (config_hook)
|
||||||
|
|
||||||
macro (prereqs_hook)
|
macro (prereqs_hook)
|
||||||
|
@ -23,7 +23,13 @@
|
|||||||
#include "config.h"
|
#include "config.h"
|
||||||
#endif // HAVE_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>
|
#include <dune/common/parallel/mpihelper.hh>
|
||||||
|
#else
|
||||||
|
#include <dune/common/mpihelper.hh>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <opm/core/pressure/FlowBCManager.hpp>
|
#include <opm/core/pressure/FlowBCManager.hpp>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user