From 0c5952d6c251669c035fbc706ca2501ed58fd45a Mon Sep 17 00:00:00 2001 From: Sebastian Grimberg Date: Tue, 25 Apr 2023 13:46:37 -0700 Subject: [PATCH] Optimization for libCEED PA removing objects for QFunction data assembly after they are no longer needed --- fem/ceed/interface/integrator.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fem/ceed/interface/integrator.hpp b/fem/ceed/interface/integrator.hpp index 5536689e9a4..ca139825198 100644 --- a/fem/ceed/interface/integrator.hpp +++ b/fem/ceed/interface/integrator.hpp @@ -328,6 +328,11 @@ class Integrator : public Operator CeedOperatorDestroy(&build_oper); CeedQFunctionDestroy(&build_qfunc); + + CeedVectorDestroy(&node_coords); + node_coords = nullptr; + delete coeff; + coeff = nullptr; } std::string apply_func = !use_mf ? info.apply_func :