From: Matthias Maier Date: Sun, 2 Jul 2023 20:59:19 +0000 (-0500) Subject: Test fe/fe_enriched_color_07: do not use a function-level static X-Git-Tag: relicensing~794^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85cc360207dfc69ccf9086cbb311efd3b0ad51fa;p=dealii.git Test fe/fe_enriched_color_07: do not use a function-level static Let's ensure that the object is always re-initialized. --- 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)