From 0e2a8d2dc5c689877a8d8de906ab2d508fdac5a7 Mon Sep 17 00:00:00 2001 From: Tor Harald Sandve Date: Tue, 19 Oct 2021 14:47:46 +0200 Subject: [PATCH] guard against missing opm-grid --- opm/models/io/unstructuredgridvanguard.hh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } /*!