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>
|
#include <dune/common/mpihelper.hh>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if HAVE_DUNE_CORNERPOINT && defined(WANT_DUNE_CORNERPOINTGRID)
|
#if HAVE_DUNE_CORNERPOINT && WANT_DUNE_CORNERPOINTGRID
|
||||||
#define USE_DUNE_CORNERPOINTGRID
|
#define USE_DUNE_CORNERPOINTGRID 1
|
||||||
#include <dune/grid/CpGrid.hpp>
|
#include <dune/grid/CpGrid.hpp>
|
||||||
#include <dune/grid/common/GridAdapter.hpp>
|
#include <dune/grid/common/GridAdapter.hpp>
|
||||||
#else
|
#else
|
||||||
@ -119,7 +119,7 @@ main(int argc, char** argv)
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
using namespace Opm;
|
using namespace Opm;
|
||||||
#ifdef USE_DUNE_CORNERPOINTGRID
|
#if USE_DUNE_CORNERPOINTGRID
|
||||||
// Must ensure an instance of the helper is created to initialise MPI.
|
// Must ensure an instance of the helper is created to initialise MPI.
|
||||||
const Dune::MPIHelper& mpi_helper = Dune::MPIHelper::instance(argc, argv);
|
const Dune::MPIHelper& mpi_helper = Dune::MPIHelper::instance(argc, argv);
|
||||||
const int mpi_rank = mpi_helper.rank();
|
const int mpi_rank = mpi_helper.rank();
|
||||||
@ -229,7 +229,7 @@ try
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::vector<double> porv = eclipseState->getDoubleGridProperty("PORV")->getData();
|
std::vector<double> porv = eclipseState->getDoubleGridProperty("PORV")->getData();
|
||||||
#ifdef USE_DUNE_CORNERPOINTGRID
|
#if USE_DUNE_CORNERPOINTGRID
|
||||||
// Dune::CpGrid as grid manager
|
// Dune::CpGrid as grid manager
|
||||||
typedef Dune::CpGrid Grid;
|
typedef Dune::CpGrid Grid;
|
||||||
std::shared_ptr<Grid> gridPtr;
|
std::shared_ptr<Grid> gridPtr;
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#define WANT_DUNE_CORNERPOINTGRID
|
#define WANT_DUNE_CORNERPOINTGRID 1
|
||||||
#include "flow.cpp"
|
#include "flow.cpp"
|
||||||
|
Loading…
Reference in New Issue
Block a user