From e46d6ebe3c12c0ac454e99ef6c8e2662c77d8bf0 Mon Sep 17 00:00:00 2001 From: Vaishnavi Kale Date: Mon, 2 Dec 2024 12:37:03 -0700 Subject: [PATCH] Fixed cell indexing in the test for reading vtk mesh with field data --- tests/grid/grid_in_vtk_2d_field_data.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) 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; } } -- 2.39.5