Skip to content
Snippets Groups Projects
Commit 45d5d9a8 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

corrected spgrid dependency

parent 390d3b97
No related branches found
No related tags found
No related merge requests found
#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>
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment