From: bangerth Date: Sat, 6 Nov 2010 06:11:09 +0000 (+0000) Subject: Make compile again. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd196eec9a05025bb6699d345e34b056bdc15a27;p=dealii-svn.git Make compile again. git-svn-id: https://svn.dealii.org/trunk@22617 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-37/step-37.cc b/deal.II/examples/step-37/step-37.cc index 7b5a1007d0..04ad16e206 100644 --- a/deal.II/examples/step-37/step-37.cc +++ b/deal.II/examples/step-37/step-37.cc @@ -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 Pcell,local-global @@ -990,6 +990,8 @@ class LaplaceOperator LaplaceOperator& operator = (const Tensor<2,dim> &tensor); + unsigned int memory_consumption () const; + private: number transformation[dim*(dim+1)/2]; }; @@ -1103,6 +1105,14 @@ LaplaceOperator::operator=(const Tensor<2,dim> &tensor) } +template +unsigned int +LaplaceOperator::memory_consumption () const +{ + return sizeof(*this); +} + + // @sect3{LaplaceProblem class}