From: Wolfgang Bangerth Date: Sun, 9 Jan 2022 17:06:31 +0000 (-0700) Subject: Simplify the WorkPackage struct. X-Git-Tag: v9.4.0-rc1~636^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=944aebb091459cc79abca5107482d2fb5031b19b;p=dealii.git Simplify the WorkPackage struct. --- diff --git a/include/deal.II/fe/fe_tools_extrapolate.templates.h b/include/deal.II/fe/fe_tools_extrapolate.templates.h index b85649a2bf..d13c4e2c2b 100644 --- a/include/deal.II/fe/fe_tools_extrapolate.templates.h +++ b/include/deal.II/fe/fe_tools_extrapolate.templates.h @@ -96,21 +96,6 @@ namespace FETools const typename dealii::internal::p4est::types::locidx tree_index; const typename DoFHandler::cell_iterator dealii_cell; const typename dealii::internal::p4est::types::quadrant p4est_cell; - - WorkPackage( - const typename dealii::internal::p4est::types::forest &forest_, - const typename dealii::internal::p4est::types::tree & tree_, - const typename dealii::internal::p4est::types::locidx - & tree_index_, - const typename DoFHandler::cell_iterator &dealii_cell_, - const typename dealii::internal::p4est::types::quadrant - &p4est_cell_) - : forest(forest_) - , tree(tree_) - , tree_index(tree_index_) - , dealii_cell(dealii_cell_) - , p4est_cell(p4est_cell_) - {} }; @@ -1470,19 +1455,21 @@ namespace FETools continue; typename dealii::internal::p4est::types::quadrant - p4est_coarse_cell; - const unsigned int tree_index = - tr->coarse_cell_to_p4est_tree_permutation[cell->index()]; + p4est_coarse_cell; + const typename dealii::internal::p4est::types::locidx + tree_index = + tr->coarse_cell_to_p4est_tree_permutation[cell->index()]; typename dealii::internal::p4est::types::tree *tree = tr->init_tree(cell->index()); dealii::internal::p4est::init_coarse_quadrant( p4est_coarse_cell); - const WorkPackage data( - *tr->parallel_forest, *tree, tree_index, cell, p4est_coarse_cell); - - queue.push(data); + queue.push({*tr->parallel_forest, + *tree, + tree_index, + cell, + p4est_coarse_cell}); } } @@ -1517,11 +1504,11 @@ namespace FETools for (unsigned int c = 0; c < GeometryInfo::max_children_per_cell; ++c) - queue.push(WorkPackage(forest, - tree, - tree_index, - dealii_cell->child(c), - p4est_child[c])); + queue.push({forest, + tree, + tree_index, + dealii_cell->child(c), + p4est_child[c]}); } queue.pop(); }