mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
define preprocessor variables to 1.
This commit is contained in:
parent
10725c0b70
commit
ee47f2887b
@ -35,8 +35,8 @@
|
||||
#include <dune/common/mpihelper.hh>
|
||||
#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 <dune/grid/CpGrid.hpp>
|
||||
#include <dune/grid/common/GridAdapter.hpp>
|
||||
#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<double> 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<Grid> gridPtr;
|
||||
|
@ -1,2 +1,2 @@
|
||||
#define WANT_DUNE_CORNERPOINTGRID
|
||||
#define WANT_DUNE_CORNERPOINTGRID 1
|
||||
#include "flow.cpp"
|
||||
|
Loading…
Reference in New Issue
Block a user