Commit 45d5d9a8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

corrected spgrid dependency

parent 390d3b97
#pragma once #pragma once
#ifdef HAVE_DUNE_SPGRID #if HAVE_DUNE_SPGRID
#include <dune/grid/spgrid.hh> #include <dune/grid/spgrid.hh>
#endif #endif
#include <dune/vtk/datacollectors/structureddatacollector.hh> #include <dune/vtk/datacollectors/structureddatacollector.hh>
namespace Dune { namespace experimental namespace Dune { namespace experimental
{ {
#ifdef HAVE_DUNE_SPGRID #if HAVE_DUNE_SPGRID
// Specialization for SPGrid // Specialization for SPGrid
template <class GridView> template <class GridView>
......
...@@ -34,7 +34,7 @@ namespace Impl_ ...@@ -34,7 +34,7 @@ namespace Impl_
template <class GridView, class Grid> template <class GridView, class Grid>
struct StructuredDataCollector; struct StructuredDataCollector;
#ifdef HAVE_DUNE_SPGRID #if HAVE_DUNE_SPGRID
template<class GridView, class ct, int dim, template< int > class Ref, class Comm> template<class GridView, class ct, int dim, template< int > class Ref, class Comm>
struct StructuredDataCollector<GridView, SPGrid<ct,dim,Ref,Comm>> struct StructuredDataCollector<GridView, SPGrid<ct,dim,Ref,Comm>>
{ {
...@@ -105,7 +105,7 @@ void write_yaspgrid(std::integral_constant<int,dim>) ...@@ -105,7 +105,7 @@ void write_yaspgrid(std::integral_constant<int,dim>)
template <int dim> template <int dim>
void write_spgrid(std::integral_constant<int,dim>) void write_spgrid(std::integral_constant<int,dim>)
{ {
#ifdef HAVE_DUNE_SPGRID #if HAVE_DUNE_SPGRID
using GridType = SPGrid<double,dim, SPIsotropicRefinement>; using GridType = SPGrid<double,dim, SPIsotropicRefinement>;
FieldVector<double,dim> upperRight; upperRight = 1.0; FieldVector<double,dim> upperRight; upperRight = 1.0;
auto numElements = filledArray<dim,int>(8); auto numElements = filledArray<dim,int>(8);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment