]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Added (empty) memory_consumption routines to petsc_vector_base, block_vector_base.
authorFlorian Prill <florian.prill@dlr.de>
Fri, 25 Jan 2008 20:24:39 +0000 (20:24 +0000)
committerFlorian Prill <florian.prill@dlr.de>
Fri, 25 Jan 2008 20:24:39 +0000 (20:24 +0000)
git-svn-id: https://svn.dealii.org/trunk@15687 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/block_vector_base.h
deal.II/lac/include/lac/petsc_vector_base.h
deal.II/lac/source/petsc_vector_base.cc

index f7c030a784e382056d106864b624546836f52c6e..516d0c18e56b12cd8477f4e152a6f3bce5611afa 100644 (file)
@@ -999,6 +999,13 @@ class BlockVectorBase : public Subscriptor
                                      */
     void equ (const value_type a, const BlockVectorBase& V,
              const value_type b, const BlockVectorBase& W);
+
+                                    /**
+                                     * Estimate for the memory
+                                     * consumption (not implemented
+                                     * for this class).
+                                     */
+    unsigned int memory_consumption () const;
       
   protected:
                                     /**
@@ -2072,6 +2079,16 @@ void BlockVectorBase<VectorType>::equ (const value_type a,
 }
 
 
+
+template <class VectorType>
+unsigned int BlockVectorBase<VectorType>::memory_consumption () const
+{
+  AssertThrow(false, ExcNotImplemented() );
+  return 0;
+}
+
+
+
 template <class VectorType>
 template <class BlockVector2>
 void BlockVectorBase<VectorType>::equ (const value_type    a,
index be949df8c7c983d1743abc3931a497c373a8b91b..41cea4e9c6753f0ec974fae27ea3adfe549cb390 100644 (file)
@@ -633,6 +633,13 @@ namespace PETScWrappers
                                         * vector.
                                         */
       operator const Vec & () const;
+
+                                      /**
+                                       * Estimate for the memory
+                                       * consumption (not implemented
+                                       * for this class).
+                                       */
+      unsigned int memory_consumption () const;
       
     protected:
                                        /**
index 816ce19eda7681c63ce1200c1a6c77a2183f7fa3..748809f287dc7c5308a2f7e4f6523a2aab497160 100644 (file)
@@ -849,6 +849,15 @@ namespace PETScWrappers
 
 
 
+  unsigned int
+  VectorBase::memory_consumption () const
+  {
+    AssertThrow(false, ExcNotImplemented() );
+    return 0;
+  }
+  
+
+
   void
   VectorBase::do_set_add_operation (const std::vector<unsigned int> &indices,
                                    const std::vector<PetscScalar>  &values,

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.