Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-tectonic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
podlesny
dune-tectonic
Compare revisions
2016-PippingKornhuberRosenauOncken to a446694e7067256cfbba25b488830b962964d65c
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
podlesny/dune-tectonic
Select target project
No results found
a446694e7067256cfbba25b488830b962964d65c
Select Git revision
Swap
Target
agnumpde/dune-tectonic
Select target project
podlesny/dune-tectonic
agnumpde/dune-tectonic
2 results
2016-PippingKornhuberRosenauOncken
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/vtk.cc
+0
-58
0 additions, 58 deletions
src/vtk.cc
src/vtk.hh
+0
-21
0 additions, 21 deletions
src/vtk.hh
src/vtk_tmpl.cc
+0
-18
0 additions, 18 deletions
src/vtk_tmpl.cc
validation
+0
-0
0 additions, 0 deletions
validation
with
0 additions
and
97 deletions
src/vtk.cc
deleted
100644 → 0
View file @
8fe950bc
#ifdef HAVE_CONFIG_H
#include
"config.h"
#endif
#include
<dune/grid/io/file/vtk/vtkwriter.hh>
#include
<dune/fufem/functions/vtkbasisgridfunction.hh>
#include
"vtk.hh"
template
<
class
VertexBasis
,
class
CellBasis
>
MyVTKWriter
<
VertexBasis
,
CellBasis
>::
MyVTKWriter
(
CellBasis
const
&
_cellBasis
,
VertexBasis
const
&
_vertexBasis
,
std
::
string
_prefix
)
:
cellBasis
(
_cellBasis
),
vertexBasis
(
_vertexBasis
),
prefix
(
_prefix
)
{}
template
<
class
VertexBasis
,
class
CellBasis
>
template
<
class
Vector
,
class
ScalarVector
>
void
MyVTKWriter
<
VertexBasis
,
CellBasis
>::
write
(
size_t
record
,
Vector
const
&
u
,
Vector
const
&
v
,
ScalarVector
const
&
alpha
,
ScalarVector
const
&
stress
)
const
{
Dune
::
VTKWriter
<
typename
VertexBasis
::
GridView
>
writer
(
vertexBasis
.
getGridView
());
auto
const
displacementPointer
=
std
::
make_shared
<
VTKBasisGridFunction
<
VertexBasis
,
Vector
>
const
>
(
vertexBasis
,
u
,
"displacement"
);
writer
.
addVertexData
(
displacementPointer
);
auto
const
velocityPointer
=
std
::
make_shared
<
VTKBasisGridFunction
<
VertexBasis
,
Vector
>
const
>
(
vertexBasis
,
v
,
"velocity"
);
writer
.
addVertexData
(
velocityPointer
);
auto
const
AlphaPointer
=
std
::
make_shared
<
VTKBasisGridFunction
<
VertexBasis
,
ScalarVector
>
const
>
(
vertexBasis
,
alpha
,
"Alpha"
);
writer
.
addVertexData
(
AlphaPointer
);
auto
const
stressPointer
=
std
::
make_shared
<
VTKBasisGridFunction
<
CellBasis
,
ScalarVector
>
const
>
(
cellBasis
,
stress
,
"stress"
);
writer
.
addCellData
(
stressPointer
);
std
::
string
const
filename
=
prefix
+
std
::
to_string
(
record
);
writer
.
write
(
filename
.
c_str
(),
Dune
::
VTK
::
appendedraw
);
}
template
<
class
VertexBasis
,
class
CellBasis
>
void
MyVTKWriter
<
VertexBasis
,
CellBasis
>::
writeGrid
()
const
{
Dune
::
VTKWriter
<
typename
VertexBasis
::
GridView
>
writer
(
vertexBasis
.
getGridView
());
std
::
string
const
filename
=
prefix
+
"_grid"
;
writer
.
write
(
filename
.
c_str
(),
Dune
::
VTK
::
appendedraw
);
}
#include
"vtk_tmpl.cc"
This diff is collapsed.
Click to expand it.
src/vtk.hh
deleted
100644 → 0
View file @
8fe950bc
#ifndef SRC_VTK_HH
#define SRC_VTK_HH
#include
<string>
template
<
class
VertexBasis
,
class
CellBasis
>
class
MyVTKWriter
{
CellBasis
const
&
cellBasis
;
VertexBasis
const
&
vertexBasis
;
std
::
string
const
prefix
;
public:
MyVTKWriter
(
CellBasis
const
&
cellBasis
,
VertexBasis
const
&
vertexBasis
,
std
::
string
prefix
);
template
<
class
Vector
,
class
ScalarVector
>
void
write
(
size_t
record
,
Vector
const
&
u
,
Vector
const
&
v
,
ScalarVector
const
&
alpha
,
ScalarVector
const
&
stress
)
const
;
void
writeGrid
()
const
;
};
#endif
This diff is collapsed.
Click to expand it.
src/vtk_tmpl.cc
deleted
100644 → 0
View file @
8fe950bc
#ifndef MY_DIM
#error MY_DIM unset
#endif
#include
"explicitgrid.hh"
#include
"explicitvectors.hh"
#include
<dune/fufem/functionspacebases/p0basis.hh>
#include
<dune/fufem/functionspacebases/p1nodalbasis.hh>
using
MyP0Basis
=
P0Basis
<
GridView
,
double
>
;
using
P1Basis
=
P1NodalBasis
<
GridView
,
double
>
;
template
class
MyVTKWriter
<
P1Basis
,
MyP0Basis
>;
template
void
MyVTKWriter
<
P1Basis
,
MyP0Basis
>
::
write
<
Vector
,
ScalarVector
>
(
size_t
record
,
Vector
const
&
u
,
Vector
const
&
v
,
ScalarVector
const
&
alpha
,
ScalarVector
const
&
stress
)
const
;
This diff is collapsed.
Click to expand it.
validation
0 → 100644
View file @
a446694e
File added
This diff is collapsed.
Click to expand it.
Prev
1
…
15
16
17
18
19
Next