From: Wolfgang Bangerth Date: Tue, 7 Apr 1998 14:42:22 +0000 (+0000) Subject: Use dVector instead of vector<...> X-Git-Tag: v8.0.0~23099 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b05f0bbc9e7e8b8e88bfa050268bab0cf5d9bdd;p=dealii.git Use dVector instead of vector<...> git-svn-id: https://svn.dealii.org/trunk@155 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/include/dofs/dof_handler.h b/deal.II/deal.II/include/dofs/dof_handler.h index efc298267d..c4a635bdb9 100644 --- a/deal.II/deal.II/include/dofs/dof_handler.h +++ b/deal.II/deal.II/include/dofs/dof_handler.h @@ -617,8 +617,8 @@ class DoFHandler : public DoFDimensionInfo { * #dof_data# is adjusted to the right * size. */ - void distribute_cell_to_dof_vector (const vector &cell_data, - dVector &dof_data) const; + void distribute_cell_to_dof_vector (const dVector &cell_data, + dVector &dof_data) const; /** * @name Cell iterator functions diff --git a/deal.II/deal.II/include/numerics/base.h b/deal.II/deal.II/include/numerics/base.h index 6b5bb8ea2e..93d808433d 100644 --- a/deal.II/deal.II/include/numerics/base.h +++ b/deal.II/deal.II/include/numerics/base.h @@ -200,16 +200,16 @@ enum NormType { and care should be taken to chose the right formula. To get the {\it global} L_1 error, you have to sum up the entries in - #difference#, e.g. using the STL function - #accumulate (d.begin(), d.end(), 0)#, if #d# is the difference vector. + #difference#, e.g. using #dVector::l1_norm# function. For the global L_2 difference, you have to sum up the squares of the - entries and take the root of the sum. These two operations represent the + entries and take the root of the sum, e.g. using #dVector::l2_norm. + These two operations represent the l_1 and l_2 norms of the vectors, but you need not take the absolute value of each entry, since the cellwise norms are already positive. To get the global mean difference, simply sum up the elements as above. To get the L_\infty norm, take the maximum of the vector elements, e.g. - using the STL function #max_element (d.begin(), d.end())#. + using the #dVector::linfty_norm# function. */ template class ProblemBase { @@ -298,7 +298,7 @@ class ProblemBase { * class for more information. */ void integrate_difference (const Function &exact_solution, - vector &difference, + dVector &difference, const Quadrature &q, const FiniteElement &fe, const NormType &norm) const;