From 45d5d9a86777cb60bc1451733e120fef7678191b Mon Sep 17 00:00:00 2001 From: Simon Praetorius <simon.praetorius@tu-dresden.de> Date: Fri, 24 Aug 2018 18:10:16 +0200 Subject: [PATCH] corrected spgrid dependency --- dune/vtk/datacollectors/spdatacollector.hh | 4 ++-- src/structuredgridwriter.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dune/vtk/datacollectors/spdatacollector.hh b/dune/vtk/datacollectors/spdatacollector.hh index 5ec8d53..1428385 100644 --- a/dune/vtk/datacollectors/spdatacollector.hh +++ b/dune/vtk/datacollectors/spdatacollector.hh @@ -1,13 +1,13 @@ #pragma once -#ifdef HAVE_DUNE_SPGRID +#if HAVE_DUNE_SPGRID #include <dune/grid/spgrid.hh> #endif #include <dune/vtk/datacollectors/structureddatacollector.hh> namespace Dune { namespace experimental { -#ifdef HAVE_DUNE_SPGRID +#if HAVE_DUNE_SPGRID // Specialization for SPGrid template <class GridView> diff --git a/src/structuredgridwriter.cc b/src/structuredgridwriter.cc index 5fbcb7d..48afc46 100644 --- a/src/structuredgridwriter.cc +++ b/src/structuredgridwriter.cc @@ -34,7 +34,7 @@ namespace Impl_ template <class GridView, class Grid> struct StructuredDataCollector; -#ifdef HAVE_DUNE_SPGRID +#if HAVE_DUNE_SPGRID template<class GridView, class ct, int dim, template< int > class Ref, class Comm> struct StructuredDataCollector<GridView, SPGrid<ct,dim,Ref,Comm>> { @@ -105,7 +105,7 @@ void write_yaspgrid(std::integral_constant<int,dim>) template <int dim> void write_spgrid(std::integral_constant<int,dim>) { -#ifdef HAVE_DUNE_SPGRID +#if HAVE_DUNE_SPGRID using GridType = SPGrid<double,dim, SPIsotropicRefinement>; FieldVector<double,dim> upperRight; upperRight = 1.0; auto numElements = filledArray<dim,int>(8); -- GitLab