Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-curvedgrid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iwr
dune-curvedgrid
Commits
ce567e76
Commit
ce567e76
authored
1 year ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Update examples to recent changes in dune-vtk
parent
7c99f672
No related branches found
No related tags found
No related merge requests found
Pipeline
#12818
failed
1 year ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/example4.cc
+2
-2
2 additions, 2 deletions
src/example4.cc
src/example5.cc
+3
-3
3 additions, 3 deletions
src/example5.cc
with
5 additions
and
5 deletions
src/example4.cc
+
2
−
2
View file @
ce567e76
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
#include
<dune/vtk/vtkreader.hh>
#include
<dune/vtk/vtkreader.hh>
#include
<dune/vtk/gridcreators/lagrangegridcreator.hh>
#include
<dune/vtk/gridcreators/lagrangegridcreator.hh>
#include
<dune/vtk/writers/
vtk
unstructuredgridwriter.hh>
#include
<dune/vtk/writers/unstructuredgridwriter.hh>
#include
<dune/vtk/datacollectors/lagrangedatacollector.hh>
#include
<dune/vtk/datacollectors/lagrangedatacollector.hh>
#include
<dune/foamgrid/foamgrid.hh>
#include
<dune/foamgrid/foamgrid.hh>
...
@@ -30,7 +30,7 @@ template <int order, class Grid>
...
@@ -30,7 +30,7 @@ template <int order, class Grid>
void
write_grid
(
const
Grid
&
grid
,
std
::
string
filename
)
void
write_grid
(
const
Grid
&
grid
,
std
::
string
filename
)
{
{
Vtk
::
LagrangeDataCollector
dataCollector
{
grid
.
leafGridView
(),
order
};
Vtk
::
LagrangeDataCollector
dataCollector
{
grid
.
leafGridView
(),
order
};
VtkUnstructuredGridWriter
vtkWriter
{
dataCollector
,
Vtk
::
FormatTypes
::
ASCII
};
Vtk
::
UnstructuredGridWriter
vtkWriter
{
dataCollector
,
Vtk
::
FormatTypes
::
ASCII
};
vtkWriter
.
write
(
filename
);
vtkWriter
.
write
(
filename
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/example5.cc
+
3
−
3
View file @
ce567e76
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include
<dune/curvedgrid/gridfunctions/analyticdiscretefunction.hh>
#include
<dune/curvedgrid/gridfunctions/analyticdiscretefunction.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dune/grid/io/file/gmshreader.hh>
#include
<dune/grid/io/file/gmshreader.hh>
#include
<dune/vtk/writers/
vtk
unstructuredgridwriter.hh>
#include
<dune/vtk/writers/unstructuredgridwriter.hh>
#include
<dune/vtk/datacollectors/lagrangedatacollector.hh>
#include
<dune/vtk/datacollectors/lagrangedatacollector.hh>
using
namespace
Dune
;
using
namespace
Dune
;
...
@@ -23,7 +23,7 @@ template <int order, class Grid>
...
@@ -23,7 +23,7 @@ template <int order, class Grid>
void
write_grid
(
const
Grid
&
grid
,
std
::
string
filename
)
void
write_grid
(
const
Grid
&
grid
,
std
::
string
filename
)
{
{
Vtk
::
LagrangeDataCollector
dataCollector
{
grid
.
leafGridView
(),
order
};
Vtk
::
LagrangeDataCollector
dataCollector
{
grid
.
leafGridView
(),
order
};
VtkUnstructuredGridWriter
vtkWriter
{
dataCollector
,
Vtk
::
FormatTypes
::
ASCII
};
Vtk
::
UnstructuredGridWriter
vtkWriter
{
dataCollector
,
Vtk
::
FormatTypes
::
ASCII
};
vtkWriter
.
write
(
filename
);
vtkWriter
.
write
(
filename
);
}
}
...
@@ -107,4 +107,4 @@ int main(int argc, char** argv)
...
@@ -107,4 +107,4 @@ int main(int argc, char** argv)
sphere
();
sphere
();
torus
();
torus
();
graph
();
graph
();
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment