Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-vtk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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-vtk
Commits
6749a6f4
Commit
6749a6f4
authored
4 years ago
by
Praetorius, Simon
Browse files
Options
Downloads
Patches
Plain Diff
Deduction guide for unstructured grid creator
parent
486efed6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dune/vtk/datacollectorinterface.hh
+6
-4
6 additions, 4 deletions
dune/vtk/datacollectorinterface.hh
dune/vtk/writers/vtkunstructuredgridwriter.hh
+4
-0
4 additions, 0 deletions
dune/vtk/writers/vtkunstructuredgridwriter.hh
with
10 additions
and
4 deletions
dune/vtk/datacollectorinterface.hh
+
6
−
4
View file @
6749a6f4
...
...
@@ -7,17 +7,19 @@ namespace Dune
{
/// Base class for data collectors in a CRTP style.
/**
* \tparam GridView
Model of Dune::GridView
* \tparam Derived Implementation of a concrete DataCollector.
* \tparam Partition Dune::PartitionType [Partitions::InteriorBorder]
* \tparam GridView
Type
Model of Dune::GridView
* \tparam Derived
Implementation of a concrete DataCollector.
* \tparam Partition
Dune::PartitionType [Partitions::InteriorBorder]
**/
template
<
class
GridView
,
class
Derived
,
class
Partition
>
template
<
class
GridView
Type
,
class
Derived
,
class
Partition
>
class
DataCollectorInterface
{
public:
/// The partitionset to collect data from
static
constexpr
auto
partition
=
Partition
{};
using
GridView
=
GridViewType
;
/// The dimension of the grid
enum
{
dim
=
GridView
::
dimension
};
...
...
This diff is collapsed.
Click to expand it.
dune/vtk/writers/vtkunstructuredgridwriter.hh
+
4
−
0
View file @
6749a6f4
...
...
@@ -90,6 +90,10 @@ namespace Dune
using
Super
::
cellData_
;
};
template
<
class
DataCollector
>
VtkUnstructuredGridWriter
(
std
::
shared_ptr
<
DataCollector
>
,
Vtk
::
FormatTypes
=
Vtk
::
BINARY
,
Vtk
::
DataTypes
=
Vtk
::
FLOAT32
)
->
VtkUnstructuredGridWriter
<
typename
DataCollector
::
GridView
,
DataCollector
>
;
}
// end namespace Dune
#include
"vtkunstructuredgridwriter.impl.hh"
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