]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
memory_consumption
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Dec 2003 14:55:00 +0000 (14:55 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 5 Dec 2003 14:55:00 +0000 (14:55 +0000)
git-svn-id: https://svn.dealii.org/trunk@8237 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_level_object.h

index 4d5298eb22e81768d28301280022ac5c3c78456b..0bb80c8ad54a69ed6e53bbb1217fcabe1feda666 100644 (file)
@@ -93,6 +93,7 @@ class MGLevelObject : public Subscriptor
                                      * Ignored
                                      */
     unsigned int get_maxlevel () const;
+    
                                     /**
                                      * Memory used by this object.
                                      */
@@ -196,7 +197,7 @@ MGLevelObject<Object>::memory_consumption () const
   typedef typename std::vector<boost::shared_ptr<Object> >::const_iterator Iter;
   const Iter end = objects.end();
   for (Iter o=objects.begin(); o!=end; ++o)
-    result += o->memory_consumption();
+    result += *o->memory_consumption();
   
   return result;
 }

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.