From 24c7c5ece12d284ebdd898b5d322e6cac7cd198f Mon Sep 17 00:00:00 2001 From: Luca Heltai Date: Fri, 22 Mar 2019 00:46:04 +0100 Subject: [PATCH] More descriptive name. --- source/grid/grid_tools.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index 32c252689d..10f5dd6272 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -3768,11 +3768,11 @@ namespace GridTools // Easy case first: if (dim == 1) return; - const unsigned int size = + const unsigned int n_subobjects = dim == 2 ? tria.n_lines() : tria.n_lines() + tria.n_quads(); // If user index is zero, then it has not been set. - std::vector> manifold_ids(size + 1); + std::vector> manifold_ids(n_subobjects + 1); std::vector backup; tria.save_user_indices(backup); tria.clear_user_data(); @@ -3785,7 +3785,7 @@ namespace GridTools { if (cell->line(l)->user_index() == 0) { - AssertIndexRange(next_index, size + 1); + AssertIndexRange(next_index, n_subobjects + 1); manifold_ids[next_index].insert(cell->manifold_id()); cell->line(l)->set_user_index(next_index++); } @@ -3798,7 +3798,7 @@ namespace GridTools { if (cell->quad(l)->user_index() == 0) { - AssertIndexRange(next_index, size + 1); + AssertIndexRange(next_index, n_subobjects + 1); manifold_ids[next_index].insert(cell->manifold_id()); cell->quad(l)->set_user_index(next_index++); } -- 2.39.5