]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
make this fnction threadsave
authorrichter <richter@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 1999 08:56:40 +0000 (08:56 +0000)
committerrichter <richter@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 1999 08:56:40 +0000 (08:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@1854 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe.cc

index ca62e92ce98f1c4126297b8bcea9a5a0d3b0824f..8ecdb81cbba7e18e38f60174bbb5bfddcb197b55 100644 (file)
@@ -457,7 +457,8 @@ void FiniteElement<dim>::fill_fe_face_values (const DoFHandler<dim>::cell_iterat
   Assert (support_points.size() == dofs_per_face,
          ExcWrongFieldDimension(support_points.size(), dofs_per_face));
   
-  vector<Point<dim> > dummy(total_dofs);
+                                  // size not checked since not used
+  static vector<Point<dim> > dummy(0);
   fill_fe_values (cell, global_unit_points,
                  jacobians, compute_jacobians,
                  jacobians_grad, compute_jacobians_grad,
@@ -505,7 +506,7 @@ void FiniteElement<dim>::fill_fe_subface_values (const DoFHandler<dim>::cell_ite
   Assert (global_unit_points.size() == unit_points.size(),
          ExcWrongFieldDimension(global_unit_points.size(), unit_points.size()));
 
-  vector<Point<dim> > dummy(total_dofs);
+  static vector<Point<dim> > dummy(0); // size not checked since not used
   fill_fe_values (cell, global_unit_points,
                  jacobians, compute_jacobians,
                  jacobians_grad, compute_jacobians_grad,

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.