]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Make compile again.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 6 Nov 2010 06:11:09 +0000 (06:11 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sat, 6 Nov 2010 06:11:09 +0000 (06:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@22617 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-37/step-37.cc

index 7b5a1007d087ac8699bbf9ae7b45284983e29f5c..04ad16e206f9703bb8644610d6654db1f1141cb1 100644 (file)
@@ -3,7 +3,7 @@
 
 /*    $Id$       */
 /*                                                                */
-/*    Copyright (C) 2009 by the deal.II authors                   */
+/*    Copyright (C) 2009, 2010 by the deal.II authors                   */
 /*                                                                */
 /*    This file is subject to QPL and may not be  distributed     */
 /*    without copyright and license information. Please refer     */
@@ -432,16 +432,16 @@ set_derivative_data (const unsigned int cell_no,
                                 // local contributions of a set of cells. As
                                 // mentioned in the introduction, if we were
                                 // to deal with a single cell, this would
-                                // amount to performing the product 
+                                // amount to performing the product
                                 // @f{eqnarray*}
-                                // P^T_\mathrm{cell,local-global} A_\mathrm{cell} 
+                                // P^T_\mathrm{cell,local-global} A_\mathrm{cell}
                                 // P_\mathrm{cell,local-global} x
                                 // @f}
-                                // where 
+                                // where
                                 // @f{eqnarray*}
-                                // A_\mathrm{cell} = 
-                                // B_\mathrm{ref\_cell}^T J_\mathrm{cell}^T 
-                                // D_\mathrm{cell} 
+                                // A_\mathrm{cell} =
+                                // B_\mathrm{ref\_cell}^T J_\mathrm{cell}^T
+                                // D_\mathrm{cell}
                                 // J_\mathrm{cell} B_\mathrm{ref\_cell}
                                 // @f}
                                 // and <i>P</i><sub>cell,local-global</sub>
@@ -990,6 +990,8 @@ class LaplaceOperator
     LaplaceOperator<dim,number>&
     operator = (const Tensor<2,dim> &tensor);
 
+    unsigned int memory_consumption () const;
+
   private:
     number transformation[dim*(dim+1)/2];
 };
@@ -1103,6 +1105,14 @@ LaplaceOperator<dim,number>::operator=(const Tensor<2,dim> &tensor)
 }
 
 
+template<int dim,typename number>
+unsigned int
+LaplaceOperator<dim,number>::memory_consumption () const
+{
+  return sizeof(*this);
+}
+
+
 
                                 // @sect3{LaplaceProblem class}
 

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.