diff --git a/examples/flow.cpp b/examples/flow.cpp index 339597258..0c8c13779 100644 --- a/examples/flow.cpp +++ b/examples/flow.cpp @@ -35,8 +35,8 @@ #include #endif -#if HAVE_DUNE_CORNERPOINT && defined(WANT_DUNE_CORNERPOINTGRID) -#define USE_DUNE_CORNERPOINTGRID +#if HAVE_DUNE_CORNERPOINT && WANT_DUNE_CORNERPOINTGRID +#define USE_DUNE_CORNERPOINTGRID 1 #include #include #else @@ -119,7 +119,7 @@ main(int argc, char** argv) try { using namespace Opm; -#ifdef USE_DUNE_CORNERPOINTGRID +#if USE_DUNE_CORNERPOINTGRID // Must ensure an instance of the helper is created to initialise MPI. const Dune::MPIHelper& mpi_helper = Dune::MPIHelper::instance(argc, argv); const int mpi_rank = mpi_helper.rank(); @@ -229,7 +229,7 @@ try } std::vector porv = eclipseState->getDoubleGridProperty("PORV")->getData(); -#ifdef USE_DUNE_CORNERPOINTGRID +#if USE_DUNE_CORNERPOINTGRID // Dune::CpGrid as grid manager typedef Dune::CpGrid Grid; std::shared_ptr gridPtr; diff --git a/examples/flow_cp.cpp b/examples/flow_cp.cpp index 3693040cf..628a3ea84 100644 --- a/examples/flow_cp.cpp +++ b/examples/flow_cp.cpp @@ -1,2 +1,2 @@ -#define WANT_DUNE_CORNERPOINTGRID +#define WANT_DUNE_CORNERPOINTGRID 1 #include "flow.cpp"