From: Vaishnavi Kale Date: Mon, 2 Dec 2024 19:37:03 +0000 (-0700) Subject: Fixed cell indexing in the test for reading vtk mesh with field data X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e46d6ebe3c12c0ac454e99ef6c8e2662c77d8bf0;p=dealii.git Fixed cell indexing in the test for reading vtk mesh with field data --- diff --git a/tests/grid/grid_in_vtk_2d_field_data.cc b/tests/grid/grid_in_vtk_2d_field_data.cc index 0cfc214d3e..152f30a8f0 100644 --- a/tests/grid/grid_in_vtk_2d_field_data.cc +++ b/tests/grid/grid_in_vtk_2d_field_data.cc @@ -60,14 +60,7 @@ check_file(const std::string name, typename GridIn::Format format) cell != triangulation.end(); ++cell) { - // store cell ID as a string - std::string text = boost::lexical_cast( - cell->id().get_coarse_cell_id()); - // Convert the string containing cell ID to an integer - boost::char_separator sep{"_"}; - boost::tokenizer> tokens(text, sep); - unsigned int cell_id = - boost::lexical_cast(*(tokens.begin())); + unsigned int cell_id = cell->id().get_coarse_cell_id(); deallog << '\t' << cell_density[cell_id] << std::endl; } }