]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #1353 from bangerth/further-FEValues-cleanups-13
authorMatthias Maier <tamiko@43-1.org>
Thu, 13 Aug 2015 20:41:29 +0000 (15:41 -0500)
committerMatthias Maier <tamiko@43-1.org>
Thu, 13 Aug 2015 20:41:29 +0000 (15:41 -0500)
Remove the is_first_cell/clear_first_cell() mechanism from Mapping.

1  2 
source/fe/mapping_fe_field.cc

index 2a51d304cbd146b9b17104147f41298e4cab7deb,a241d6aa66a4168bc17553cc748b0e0bacae5087..9d538b8f264e9aba93465240bffeeb0e1336e453
@@@ -214,27 -231,15 +214,24 @@@ MappingFEField<dim,spacedim,VECTOR,DH>:
                                                        const unsigned int     n_original_q_points,
                                                        InternalData           &data) const
  {
-   const unsigned int n_q_points = q.size();
-   data.update_once = update_once(update_flags);
    data.update_each = update_each(update_flags);
-   data.update_flags = data.update_once | data.update_each;
  
-   const UpdateFlags flags(data.update_flags);
+   const unsigned int n_q_points = q.size();
+   const UpdateFlags flags = update_once(update_flags) | update_each(update_flags);
  
 -  if (flags & update_transformation_values)
 +  // see if we need the (transformation) shape function values
 +  // and/or gradients and resize the necessary arrays
 +  if (flags & update_quadrature_points)
      data.shape_values.resize(data.n_shape_functions * n_q_points);
  
 -  if (flags & update_transformation_gradients)
 +  if (flags & (update_covariant_transformation
 +               | update_contravariant_transformation
 +               | update_JxW_values
 +               | update_boundary_forms
 +               | update_normal_vectors
 +               | update_jacobians
 +               | update_jacobian_grads
 +               | update_inverse_jacobians))
      data.shape_derivatives.resize(data.n_shape_functions * n_q_points);
  
    if (flags & update_covariant_transformation)

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.