Commit c27dc90d authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Remove VTK::Precision for dune-grid < 2.7

parent 0178bba1
......@@ -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)
{
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment