]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Delete InternalData::~InternalData because we delete memory that we no
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 May 2001 14:44:33 +0000 (14:44 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 May 2001 14:44:33 +0000 (14:44 +0000)
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
deal.II/deal.II/source/fe/fe_dgq.cc

index 73c1915389d3caf7a61bea4aa0160bdb73002347..ac2b3307da8ee084c747b76c236691c280c3b004 100644 (file)
@@ -235,28 +235,26 @@ class FE_DGQ : public FiniteElement<dim>
     {
       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<std::vector<double> > 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<std::vector<Tensor<1,dim> > > shape_gradients;
-
     };
     
                                     /**
index c566e7c7fd6490562d9402c9bbb0597c9dab5e90..e4fe8910e7cae205a39aa5d4fc3300cf518fd136 100644 (file)
 
 
 
-template <int dim>
-FE_DGQ<dim>::InternalData::~InternalData ()
-{
-  for (unsigned int i=0;i<differences.size ();++i)
-    if (differences[i] != 0)
-      delete differences[i];
-}
-
-
-
-
 template <int dim>
 FE_DGQ<dim>::FE_DGQ (unsigned int degree)
                :

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.