From 2276ce1406c9897e5b3c05709ac3e606f20dd620 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 4 Mar 2017 17:25:43 -0500 Subject: [PATCH] Mark a function as static. This was caught by cppcheck. --- source/fe/fe_tools_extrapolate.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/source/fe/fe_tools_extrapolate.cc b/source/fe/fe_tools_extrapolate.cc index d902e5f50b..ed261df87f 100644 --- a/source/fe/fe_tools_extrapolate.cc +++ b/source/fe/fe_tools_extrapolate.cc @@ -334,11 +334,11 @@ namespace FETools // add new cell_data to // the ordered list new_needs // uses cell_data_insert - void add_new_need (const typename dealii::internal::p4est::types::forest &forest, - 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, - std::vector &new_needs) const; + static void add_new_need (const typename dealii::internal::p4est::types::forest &forest, + 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, + std::vector &new_needs); // binary search in cells_list // assume that cells_list @@ -1128,7 +1128,7 @@ 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, - std::vector &new_needs) const + std::vector &new_needs) { const FiniteElement &fe = dealii_cell->get_dof_handler().get_fe(); const unsigned int dofs_per_cell = fe.dofs_per_cell; -- 2.39.5