]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use dVector instead of vector<...>
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 7 Apr 1998 14:42:22 +0000 (14:42 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Tue, 7 Apr 1998 14:42:22 +0000 (14:42 +0000)
git-svn-id: https://svn.dealii.org/trunk@155 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_handler.h
deal.II/deal.II/include/numerics/base.h

index efc298267d4f0596f7aa9b0be8db9799a4796e23..c4a635bdb952440721530d375a88d059d83f9601 100644 (file)
@@ -617,8 +617,8 @@ class DoFHandler : public DoFDimensionInfo<dim> {
                                      * #dof_data# is adjusted to the right
                                      * size.
                                      */
-    void distribute_cell_to_dof_vector (const vector<double> &cell_data,
-                                       dVector              &dof_data) const;
+    void distribute_cell_to_dof_vector (const dVector &cell_data,
+                                       dVector       &dof_data) const;
 
                                     /**
                                      *  @name Cell iterator functions
index 6b5bb8ea2ed6d8c4d0bf0a09c61216237b3b3881..93d808433d0fcdffaf40531c9e20a0d3613489ee 100644 (file)
@@ -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 <int dim>
 class ProblemBase {
@@ -298,7 +298,7 @@ class ProblemBase {
                                      * class for more information.
                                      */
     void integrate_difference (const Function<dim>      &exact_solution,
-                              vector<double>           &difference,
+                              dVector                  &difference,
                               const Quadrature<dim>    &q,
                               const FiniteElement<dim> &fe,
                               const NormType           &norm) const;

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.