]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Improve thread-safety.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 1999 08:31:23 +0000 (08:31 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 16 Nov 1999 08:31:23 +0000 (08:31 +0000)
git-svn-id: https://svn.dealii.org/trunk@1852 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 65c9b674a31a58237def4a768a9430280a5438d5..056e20bed8977d53c9ff811df973d84b81f21975 100644 (file)
@@ -391,15 +391,13 @@ void FEValues<dim>::reinit (const typename DoFHandler<dim>::cell_iterator &cell)
                +=
                unit_shape_gradients[i][j][b] * jacobi_matrices[j][b][s];
          };
-
   
+  Tensor<2,dim> tmp1, tmp2;
   if (update_flags & update_second_derivatives)
     for (unsigned int i=0; i<fe->total_dofs; ++i)
       for (unsigned int j=0; j<n_quadrature_points; ++j)
        {
-         static Tensor<2,dim> tmp1, tmp2;
-
-                                          // tmp1 := (d_k d_l phi) J_lj
+                                                  // tmp1 := (d_k d_l phi) J_lj
          contract (tmp1, unit_shape_2nd_derivatives[i][j], jacobi_matrices[j]);
                                           // tmp2 := tmp1_kj J_ki
          contract (tmp2, tmp1, 1, jacobi_matrices[j], 1);

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.