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
bb9a70e7
Commit
bb9a70e7
authored
Aug 29, 2018
by
Praetorius, Simon
Browse files
Removed dune-functions requirement
parent
c941664d
Changes
6
Hide whitespace changes
Inline
Side-by-side
dune.module
View file @
bb9a70e7
...
...
@@ -7,5 +7,5 @@ Module: dune-vtk
Version
:
0.1
Maintainer
:
simon
.
praetorius
@
tu
-
dresden
.
de
#depending on
Depends
:
dune
-
grid
dune
-
functions
Suggests
:
dune
-
spgrid
dune
-
polygongrid
\ No newline at end of file
Depends
:
dune
-
grid
Suggests
:
dune
-
functions
dune
-
spgrid
dune
-
polygongrid
\ No newline at end of file
dune/vtk/datacollectors/continuousdatacollector.hh
View file @
bb9a70e7
#pragma once
#include <numeric>
#include "unstructureddatacollector.hh"
namespace
Dune
...
...
dune/vtk/vtkfunction.hh
View file @
bb9a70e7
...
...
@@ -3,7 +3,6 @@
#include <type_traits>
#include <dune/common/std/type_traits.hh>
#include <dune/functions/common/signature.hh>
#include "vtklocalfunction.hh"
#include "vtktypes.hh"
...
...
src/CMakeLists.txt
View file @
bb9a70e7
add_executable
(
"vtkwriter"
vtkwriter.cc
)
target_link_dune_default_libraries
(
"vtkwriter"
)
target_link_libraries
(
"vtkwriter"
dunevtk
)
add_executable
(
"vtkreader"
vtkreader.cc
)
target_link_dune_default_libraries
(
"vtkreader"
)
target_link_libraries
(
"vtkreader"
dunevtk
)
add_executable
(
"benchmark"
benchmark.cc
)
target_link_dune_default_libraries
(
"benchmark"
)
target_link_libraries
(
"benchmark"
dunevtk
)
add_executable
(
"datacollector"
datacollector.cc
)
target_link_dune_default_libraries
(
"datacollector"
)
target_link_libraries
(
"datacollector"
dunevtk
)
add_executable
(
"structuredgridwriter"
structuredgridwriter.cc
)
target_link_dune_default_libraries
(
"structuredgridwriter"
)
target_link_libraries
(
"structuredgridwriter"
dunevtk
)
add_executable
(
"legacyvtkwriter"
legacyvtkwriter.cc
)
target_link_dune_default_libraries
(
"legacyvtkwriter"
)
target_link_libraries
(
"legacyvtkwriter"
dunevtk
)
add_executable
(
"geometrygrid"
geometrygrid.cc
)
target_link_dune_default_libraries
(
"geometrygrid"
)
target_link_libraries
(
"geometrygrid"
dunevtk
)
if
(
dune-functions_FOUND
)
add_executable
(
"vtkwriter"
vtkwriter.cc
)
target_link_dune_default_libraries
(
"vtkwriter"
)
target_link_libraries
(
"vtkwriter"
dunevtk
)
add_executable
(
"benchmark"
benchmark.cc
)
target_link_dune_default_libraries
(
"benchmark"
)
target_link_libraries
(
"benchmark"
dunevtk
)
add_executable
(
"datacollector"
datacollector.cc
)
target_link_dune_default_libraries
(
"datacollector"
)
target_link_libraries
(
"datacollector"
dunevtk
)
add_executable
(
"structuredgridwriter"
structuredgridwriter.cc
)
target_link_dune_default_libraries
(
"structuredgridwriter"
)
target_link_libraries
(
"structuredgridwriter"
dunevtk
)
add_executable
(
"geometrygrid"
geometrygrid.cc
)
target_link_dune_default_libraries
(
"geometrygrid"
)
target_link_libraries
(
"geometrygrid"
dunevtk
)
endif
()
if
(
dune-polygongrid_FOUND
)
add_executable
(
"polygongrid"
polygongrid.cc
)
...
...
src/legacyvtkwriter.cc
View file @
bb9a70e7
...
...
@@ -12,11 +12,6 @@
#include <dune/common/exceptions.hh> // We use exceptions
#include <dune/common/filledarray.hh>
#include <dune/functions/functionspacebases/defaultglobalbasis.hh>
#include <dune/functions/functionspacebases/lagrangebasis.hh>
#include <dune/functions/functionspacebases/interpolate.hh>
#include <dune/functions/gridfunctions/analyticgridviewfunction.hh>
#include <dune/functions/gridfunctions/discreteglobalbasisfunction.hh>
#include <dune/grid/uggrid.hh>
#include <dune/grid/yaspgrid.hh>
...
...
@@ -24,7 +19,6 @@
#include <dune/vtk/legacyvtkfunction.hh>
using
namespace
Dune
;
using
namespace
Dune
::
Functions
;
int
main
(
int
argc
,
char
**
argv
)
{
...
...
@@ -39,14 +33,7 @@ int main(int argc, char** argv)
using
GridView
=
typename
GridType
::
LeafGridView
;
GridView
gridView
=
grid
.
leafGridView
();
using
namespace
BasisFactory
;
auto
basis
=
makeBasis
(
gridView
,
lagrange
<
1
>
());
std
::
vector
<
double
>
p1function
(
basis
.
dimension
());
interpolate
(
basis
,
p1function
,
[](
auto
const
&
x
)
{
return
100
*
x
[
0
]
+
10
*
x
[
1
]
+
1
*
x
[
2
];
});
std
::
vector
<
double
>
p1function
(
gridView
.
size
(
dim
),
1.0
);
using
P1Function
=
P1VTKFunction
<
GridView
,
std
::
vector
<
double
>>
;
std
::
shared_ptr
<
VTKFunction
<
GridView
>
const
>
p1FctWrapped
(
new
P1Function
(
gridView
,
p1function
,
"p1"
));
...
...
src/test/CMakeLists.txt
View file @
bb9a70e7
dune_add_test
(
SOURCES reader_writer_test.cc
LINK_LIBRARIES dunevtk
)
LINK_LIBRARIES dunevtk
CMAKE_GUARD
)
dune_add_test
(
SOURCES mixed_element_test.cc
LINK_LIBRARIES dunevtk
...
...
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