12#ifndef DUMUX_IO_VTK_PRECISION_HH
13#define DUMUX_IO_VTK_PRECISION_HH
17#include <dune/grid/io/file/vtk/common.hh>
21using Dune::VTK::Precision;
31 static const std::array<std::pair<std::string_view, Precision>, 5> nameToPrecision
33 {
"Float32", Precision::float32 },
34 {
"Float64", Precision::float64 },
35 {
"UInt32", Precision::uint32 },
36 {
"UInt8", Precision::uint8 },
37 {
"Int32", Precision::int32 },
40 for (
const auto& [name, precision] : nameToPrecision)
41 if (name == precisionName)
44 DUNE_THROW(Dune::InvalidStateException,
"Unknown precision type " << precisionName);
Definition: fieldtype.hh:15