]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change a parameter from a vector<double> to a dVector since a) it does not hurt in...
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 May 1998 17:44:58 +0000 (17:44 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 25 May 1998 17:44:58 +0000 (17:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@359 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/dofs/dof_accessor.h
deal.II/deal.II/source/dofs/dof_accessor.cc
deal.II/deal.II/source/fe/fe_values.cc

index 9344e8b1388a907e33f597e9570fa31b34ad53f1..51cdeba8634a68cca5105551882247fe48ffd468 100644 (file)
@@ -490,8 +490,9 @@ class DoFCellAccessor :  public DoFSubstructAccessor<dim> {
                                      * It is assumed that the vector already
                                      * has the right size beforehand.
                                      */
-    void get_dof_values (const dVector  &values,
-                        vector<double> &dof_values) const;
+    void get_dof_values (const dVector &values,
+                        dVector       &dof_values) const;
+
 
                                     /**
                                      *  Exception
index d6ea8a91692a6f0271b6a6a89103b9e86639af20..ab6223817d46f0062168da9bd5c05038899e0809 100644 (file)
@@ -323,8 +323,8 @@ DoFCellAccessor<2>::face (const unsigned int i) const {
 
 template <>
 void
-DoFCellAccessor<1>::get_dof_values (const dVector  &values,
-                                   vector<double> &dof_values) const {
+DoFCellAccessor<1>::get_dof_values (const dVector &values,
+                                   dVector       &dof_values) const {
   Assert (dof_handler != 0, ExcInvalidObject());
   Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
   Assert (dof_values.size() == dof_handler->get_selected_fe().total_dofs,
@@ -347,8 +347,8 @@ DoFCellAccessor<1>::get_dof_values (const dVector  &values,
 
 template <>
 void
-DoFCellAccessor<2>::get_dof_values (const dVector  &values,
-                                   vector<double> &dof_values) const {
+DoFCellAccessor<2>::get_dof_values (const dVector &values,
+                                   dVector       &dof_values) const {
   Assert (dof_handler != 0, ExcInvalidObject());
   Assert (&dof_handler->get_selected_fe() != 0, ExcInvalidObject());
   Assert (dof_values.size() == dof_handler->get_selected_fe().total_dofs,
index f4a145301a7506ae4cce737ecb78b2bb9c78f2a2..83414049a85ea9d60e5cdc5ba10a420e20913eaa 100644 (file)
@@ -59,7 +59,7 @@ void FEValuesBase<dim>::get_function_values (const dVector  &fe_function,
 
                                   // get function values of dofs
                                   // on this cell
-  vector<double> dof_values (total_dofs, 0);
+  dVector dof_values (total_dofs);
   present_cell->get_dof_values (fe_function, dof_values);
 
                                   // initialize with zero
@@ -69,7 +69,7 @@ void FEValuesBase<dim>::get_function_values (const dVector  &fe_function,
                                   // functions
   for (unsigned int point=0; point<n_quadrature_points; ++point)
     for (unsigned int shape_func=0; shape_func<total_dofs; ++shape_func)
-      values[point] += (dof_values[shape_func] *
+      values[point] += (dof_values(shape_func) *
                        shape_values[selected_dataset](shape_func, point));
 };
 
@@ -98,7 +98,7 @@ void FEValuesBase<dim>::get_function_grads (const dVector       &fe_function,
 
                                   // get function values of dofs
                                   // on this cell
-  vector<double> dof_values (total_dofs, 0);
+  dVector dof_values (total_dofs);
   present_cell->get_dof_values (fe_function, dof_values);
 
                                   // initialize with zero
@@ -108,7 +108,7 @@ void FEValuesBase<dim>::get_function_grads (const dVector       &fe_function,
                                   // functions
   for (unsigned int point=0; point<n_quadrature_points; ++point)
     for (unsigned int shape_func=0; shape_func<total_dofs; ++shape_func)
-      gradients[point] += (dof_values[shape_func] *
+      gradients[point] += (dof_values(shape_func) *
                           shape_gradients[shape_func][point]);
 };
 

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.