Commit 91330a39 authored by Timo Koch's avatar Timo Koch

Merge branch 'feature/opm-newest-version' into 'master'

Feature/opm newest version

See merge request !1419

(cherry picked from commit 7941a31f)

2bd37f28 [installexternal] Update to newest opm release
d3f8ef87 [patches] Delete unnecessary patches
2541ce80 [cmake][opts] Add opm cmake variables to opts-file
2bd6a660 [install] Update opm installation output
parent 408f5140
......@@ -58,7 +58,7 @@ installEcl()
if [ ! -e libecl ]; then
git clone -b 2018.04
git clone -b 2018.10
if test "$DOWNLOAD_ONLY" == "y"; then
......@@ -288,11 +288,11 @@ installOPM()
if [ ! -e opm-common ]; then
git clone -b release/2018.04
git clone -b release/2018.10
if [ ! -e opm-grid ]; then
git clone -b release/2018.04
git clone -b release/2018.10
if test "$DOWNLOAD_ONLY" == "y"; then
......@@ -305,21 +305,15 @@ installOPM()
# apply patches
echo "Applying patch for opm-common"
cd $TOPDIR/opm-common
patch -p1 < $TOPDIR/dumux/patches/opm-common-2018.04.patch
echo "Applying patch for opm-grid"
cd $TOPDIR/opm-grid
patch -p1 < $TOPDIR/dumux/patches/opm-grid-2018.04.patch
# show additional information
echo "In addition, it might be necessary to set manually some"
echo "CMake variables in the CMAKE_FLAGS section of the .opts-file:"
echo " -DOPM_COMMON_ROOT=/path/to/opm-common \\"
echo " -Decl_DIR=/path/to/libecl/build \\"
echo " -DUSE_MPI=ON \\"
echo " -Decl_DIR=$TOPDIR/libecl/build"
echo " -DUSE_MPI=ON"
# show some opm prerequisites
echo "Maybe you also have to install the following packages (see the opm prerequisites at "
echo " BLAS, LAPACK, Boost, SuperLU, SuiteSparse"
......@@ -444,7 +438,7 @@ usage()
echo " multidomain Download dune-multidomain."
echo " multidomaingrid Download and patch dune-multidomaingrid."
echo " nlopt Download and install nlopt."
echo " opm Download opm modules required for dune-cornerpoint."
echo " opm Download opm modules required for cornerpoint grids."
echo " pdelab Download dune-pdelab."
echo " typetree Download dune-typetree."
echo " ug Install the UG grid library."
......@@ -32,6 +32,13 @@ SPECIFIC_GENERATOR=""
# -DCMAKE_MAKE_PROGRAM='/usr/bin/ninja'
# to build opm it might be necessary to set manually the following variables (comment the above line)
# set this to "ON" if you want to be able to have the headercheck target
......@@ -39,7 +46,7 @@ DUMUX_ENABLE_HEADERCHECK=OFF
# you can also do this in any of the CMakeLists.txt in Dumux
# just rerun cmake again afterwards (run cmake <path-to-build-dir>)
-DCMAKE_CXX_FLAGS_DEBUG='-O0 -g -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare'
......@@ -4,15 +4,3 @@
dune-istl 2.4.1, e.g.:
patch -p1 <../dumux/patches/istl-2.4.1.patch
- If opm-grid has to be used for, e.g., employing the CpGridCreator,
and Opm is compiled from source, it is necessary to patch opm-common and
opm-grid, namely, to execute in the corresponding folders:
patch -p1 <../dumux/patches/opm-common-2018.04.patch
patch -p1 <../dumux/patches/opm-grid-2018.04.patch
Currently, Dumux is supposed to be compatible with the Opm 2018.04 release.
In addition, it might be necessary to set manually some
CMake variables in the CMAKE_FLAGS section of the .opts-file:
-DOPM_COMMON_ROOT=/path/to/opm-common \
-Decl_DIR=/path/to/libecl/build \
diff --git a/cmake/Modules/OpmProject.cmake b/cmake/Modules/OpmProject.cmake
index 51d572df..68feda08 100644
--- a/cmake/Modules/OpmProject.cmake
+++ b/cmake/Modules/OpmProject.cmake
@@ -76,6 +76,7 @@ function (opm_cmake_config name)
set (template_dir "${OPM_MACROS_ROOT}/cmake/Templates")
# write configuration file to locate library
configure_cmake_file (${name} "config" "")
@@ -123,6 +124,7 @@ function (opm_cmake_config name)
# of the build directory (using the same input template)
set(PREREQ_LOCATION "${CMAKE_INSTALL_PREFIX}/share/opm/cmake/Modules")
configure_cmake_file (${name} "install" "")
configure_vars (
FILE CMAKE "${PROJECT_BINARY_DIR}/${${name}_NAME}-install.cmake"
diff --git a/cmake/Templates/ b/cmake/Templates/
index 421708a8..a783043d 100644
--- a/cmake/Templates/
+++ b/cmake/Templates/
@@ -24,6 +24,7 @@ if(NOT @opm-project_NAME@_FOUND)
# propagate these properties from one build system to the other
+ set (@opm-project_NAME@_PREFIX "@DUNE_PREFIX@")
set (@opm-project_NAME@_VERSION "@opm-project_VERSION@")
set (@opm-project_NAME@_DEFINITIONS "@opm-project_DEFINITIONS@")
set (@opm-project_NAME@_INCLUDE_DIRS "@opm-project_INCLUDE_DIRS@")
diff --git a/opm/grid/common/p2pcommunicator.hh b/opm/grid/common/p2pcommunicator.hh
index 1b4b327..55a2b2f 100644
--- a/opm/grid/common/p2pcommunicator.hh
+++ b/opm/grid/common/p2pcommunicator.hh
@@ -23,6 +23,7 @@
#include <vector>
#include <set>
#include <map>
+#include <cassert>
#include <dune/common/version.hh>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment