From a42496b801e5744262ad75cac9ef78793cf496c8 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 3 May 2001 14:44:33 +0000 Subject: [PATCH] Delete InternalData::~InternalData because we delete memory that we no more own as the variable that was deleted has been removed by Guido and we now delete a variable with the same name in the base class, which is subsequently tried to be deleted again. Arghhhh!! git-svn-id: https://svn.dealii.org/trunk@4530 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/include/fe/fe_dgq.h | 30 ++++++++++++++--------------- deal.II/deal.II/source/fe/fe_dgq.cc | 11 ----------- 2 files changed, 14 insertions(+), 27 deletions(-) diff --git a/deal.II/deal.II/include/fe/fe_dgq.h b/deal.II/deal.II/include/fe/fe_dgq.h index 73c1915389..ac2b3307da 100644 --- a/deal.II/deal.II/include/fe/fe_dgq.h +++ b/deal.II/deal.II/include/fe/fe_dgq.h @@ -235,28 +235,26 @@ class FE_DGQ : public FiniteElement { public: /** - * Destructor. Needed to avoid - * memory leaks with difference - * quotients. - */ - ~InternalData (); - - /** - * Array with shape function values - * in quadrature points. There is one - * vector for each shape function, containing - * values for each quadrature point. + * Array with shape function + * values in quadrature + * points. There is one + * vector for each shape + * function, containing + * values for each quadrature + * point. */ std::vector > shape_values; /** - * Array with shape function gradients - * in quadrature points. There is one - * vector for each shape function, containing - * values for each quadrature point. + * Array with shape function + * gradients in quadrature + * points. There is one + * vector for each shape + * function, containing + * values for each quadrature + * point. */ std::vector > > shape_gradients; - }; /** diff --git a/deal.II/deal.II/source/fe/fe_dgq.cc b/deal.II/deal.II/source/fe/fe_dgq.cc index c566e7c7fd..e4fe8910e7 100644 --- a/deal.II/deal.II/source/fe/fe_dgq.cc +++ b/deal.II/deal.II/source/fe/fe_dgq.cc @@ -25,17 +25,6 @@ -template -FE_DGQ::InternalData::~InternalData () -{ - for (unsigned int i=0;i FE_DGQ::FE_DGQ (unsigned int degree) : -- 2.39.5