From 85cc360207dfc69ccf9086cbb311efd3b0ad51fa Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sun, 2 Jul 2023 15:59:19 -0500 Subject: [PATCH] Test fe/fe_enriched_color_07: do not use a function-level static Let's ensure that the object is always re-initialized. --- tests/fe/fe_enriched_color_07.cc | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/fe/fe_enriched_color_07.cc b/tests/fe/fe_enriched_color_07.cc index 45ea69124e..e4cbd66b02 100644 --- a/tests/fe/fe_enriched_color_07.cc +++ b/tests/fe/fe_enriched_color_07.cc @@ -1339,12 +1339,15 @@ LaplaceProblem::build_fe_space() pcout << "...building fe space" << std::endl; make_enrichment_functions(); - static ColorEnriched::Helper fe_space(fe_base, - fe_enriched, - vec_predicates, - vec_enrichments); + + static std::unique_ptr> fe_space; + fe_space = std::make_unique>(fe_base, + fe_enriched, + vec_predicates, + vec_enrichments); + fe_collection = std::make_shared>( - fe_space.build_fe_collection(dof_handler)); + fe_space->build_fe_collection(dof_handler)); pcout << "size of fe collection: " << fe_collection->size() << std::endl; if (prm.debug_level == 9) -- 2.39.5