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
c27dc90d
Commit
c27dc90d
authored
Dec 17, 2020
by
Praetorius, Simon
Browse files
Remove VTK::Precision for dune-grid < 2.7
parent
0178bba1
Changes
2
Hide whitespace changes
Inline
Side-by-side
dune/vtk/types.cc
View file @
c27dc90d
...
...
@@ -93,6 +93,7 @@ std::string to_string (Vtk::DataTypes type)
}
}
#if DUNE_VERSION_GTE(DUNE_GRID,2,7)
Vtk
::
DataTypes
dataTypeOf
(
Dune
::
VTK
::
Precision
p
)
{
switch
(
p
)
{
...
...
@@ -106,6 +107,7 @@ Vtk::DataTypes dataTypeOf (Dune::VTK::Precision p)
std
::
abort
();
}
}
#endif
Vtk
::
DataTypes
dataTypeOf
(
std
::
string
s
)
{
...
...
dune/vtk/types.hh
View file @
c27dc90d
...
...
@@ -231,7 +231,11 @@ namespace Dune
// Construct from dune-grid FieldInfo
FieldInfo
(
Dune
::
VTK
::
FieldInfo
info
)
#if DUNE_VERSION_LT(DUNE_GRID,2,7)
:
FieldInfo
(
info
.
name
(),
info
.
size
(),
rangeTypeOf
(
info
.
type
()))
#else
:
FieldInfo
(
info
.
name
(),
info
.
size
(),
rangeTypeOf
(
info
.
type
()),
dataTypeOf
(
info
.
precision
()))
#endif
{}
/// The name of the data field
...
...
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