From: Daniel Arndt Date: Tue, 4 Dec 2018 00:21:07 +0000 (+0100) Subject: Use double for istream again X-Git-Tag: v9.1.0-rc1~509^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a810dcc126ff0fc2438a2586c365f4c7c290223;p=dealii.git Use double for istream again --- diff --git a/source/grid/grid_in.cc b/source/grid/grid_in.cc index 46f105e3e4..2f4afa4168 100644 --- a/source/grid/grid_in.cc +++ b/source/grid/grid_in.cc @@ -412,12 +412,14 @@ GridIn::read_vtk(std::istream &in) // the order used in the following blocks makes sense for (unsigned int i = 0; i < cells.size(); i++) { - types::manifold_id id; + double id; in >> id; if (set == "MaterialID") - cells[i].material_id = id; + cells[i].material_id = + static_cast(id); else if (set == "ManifoldID") - cells[i].manifold_id = id; + cells[i].manifold_id = + static_cast(id); else Assert(false, ExcInternalError()); } @@ -428,12 +430,14 @@ GridIn::read_vtk(std::istream &in) i < subcelldata.boundary_quads.size(); i++) { - types::manifold_id id; + double id; in >> id; if (set == "MaterialID") - subcelldata.boundary_quads[i].material_id = id; + subcelldata.boundary_quads[i].material_id = + static_cast(id); else if (set == "ManifoldID") - subcelldata.boundary_quads[i].manifold_id = id; + subcelldata.boundary_quads[i].manifold_id = + static_cast(id); else Assert(false, ExcInternalError()); } @@ -441,12 +445,14 @@ GridIn::read_vtk(std::istream &in) i < subcelldata.boundary_lines.size(); i++) { - types::manifold_id id; + double id; in >> id; if (set == "MaterialID") - subcelldata.boundary_lines[i].material_id = id; + subcelldata.boundary_lines[i].material_id = + static_cast(id); else if (set == "ManifoldID") - subcelldata.boundary_lines[i].manifold_id = id; + subcelldata.boundary_lines[i].manifold_id = + static_cast(id); else Assert(false, ExcInternalError()); } @@ -457,12 +463,14 @@ GridIn::read_vtk(std::istream &in) i < subcelldata.boundary_lines.size(); i++) { - types::manifold_id id; + double id; in >> id; if (set == "MaterialID") - subcelldata.boundary_lines[i].material_id = id; + subcelldata.boundary_lines[i].material_id = + static_cast(id); else if (set == "ManifoldID") - subcelldata.boundary_lines[i].manifold_id = id; + subcelldata.boundary_lines[i].manifold_id = + static_cast(id); else Assert(false, ExcInternalError()); }