diff --git a/opm/models/io/unstructuredgridvanguard.hh b/opm/models/io/unstructuredgridvanguard.hh index 71deed0e7..10b0c05b0 100644 --- a/opm/models/io/unstructuredgridvanguard.hh +++ b/opm/models/io/unstructuredgridvanguard.hh @@ -28,8 +28,9 @@ #include #include +#ifdef HAVE_OPM_GRID #include "opm/grid/UnstructuredGrid.h" - +#endif namespace Opm { /*! @@ -62,7 +63,7 @@ class UnstructuredGridVanguard : public BaseVanguard { * \brief Load the grid from the file. */ UnstructuredGridVanguard(Simulator& simulator) : ParentType(simulator){ - +#ifdef HAVE_OPM_GRID const std::string gridFileName = EWOMS_GET_PARAM(TypeTag, std::string, GridFile); unsigned numRefinments = EWOMS_GET_PARAM(TypeTag, unsigned, GridGlobalRefinements); @@ -82,6 +83,7 @@ class UnstructuredGridVanguard : public BaseVanguard { gridPtr_->globalRefine(static_cast(numRefinments)); } this->finalizeInit_(); +#endif } /*!