From: Wolfgang Bangerth Date: Thu, 3 May 2001 14:44:33 +0000 (+0000) Subject: Delete InternalData::~InternalData because we delete memory that we no X-Git-Tag: v8.0.0~19260 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=610dec3c9991011b07414292bd658e6f9b7b3386;p=dealii.git 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 --- 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) :