Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iwr
dune-vtk
Commits
45d5d9a8
Commit
45d5d9a8
authored
Aug 24, 2018
by
Praetorius, Simon
Browse files
corrected spgrid dependency
parent
390d3b97
Changes
2
Hide whitespace changes
Inline
Side-by-side
dune/vtk/datacollectors/spdatacollector.hh
View file @
45d5d9a8
#pragma once
#pragma once
#if
def
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
{
{
#if
def
HAVE_DUNE_SPGRID
#if HAVE_DUNE_SPGRID
// Specialization for SPGrid
// Specialization for SPGrid
template
<
class
GridView
>
template
<
class
GridView
>
...
...
src/structuredgridwriter.cc
View file @
45d5d9a8
...
@@ -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
;
#if
def
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
>
)
{
{
#if
def
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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment