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
e446a49b
Commit
e446a49b
authored
Dec 03, 2018
by
Praetorius, Simon
Browse files
correct dune version checkout and feature check in vtkwriter
parent
0d5e1c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/vtkwriter.cc
View file @
e446a49b
...
...
@@ -38,7 +38,7 @@ static TestCases test_cases = {
template
<
class
GridView
>
void
write
(
std
::
string
prefix
,
GridView
const
&
gridView
)
{
#if
!
DUNE_VERSION_
NEWER
(DUNE_FUNCTIONS, 2,
6
)
#if DUNE_VERSION_
LT
(DUNE_FUNCTIONS, 2,
7
)
using
namespace
BasisBuilder
;
#else
using
namespace
BasisFactory
;
...
...
@@ -77,7 +77,7 @@ int main (int argc, char** argv)
{
Dune
::
MPIHelper
::
instance
(
argc
,
argv
);
#if
def
HAVE_UG
#if HAVE_UG
// Test VtkWriter for UGGrid
Hybrid
::
forEach
(
std
::
make_tuple
(
int_
<
2
>
{},
int_
<
3
>
{}),
[](
auto
dim
)
{
...
...
@@ -87,7 +87,7 @@ int main (int argc, char** argv)
FieldVector
<
double
,
dim
.
value
>
upperRight
;
upperRight
=
1.0
;
auto
numElements
=
filledArray
<
dim
.
value
,
unsigned
int
>
(
8
);
auto
gridPtr
=
StructuredGridFactory
<
GridType
>::
createSimplexGrid
(
lowerLeft
,
upperRight
,
numElements
);
gridPtr
->
loadBalance
();
write
(
"vtkwriter_ug"
,
gridPtr
->
leafGridView
());
}
});
...
...
Write
Preview
Markdown
is supported
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