From: Matthias Maier Date: Thu, 13 Aug 2015 20:41:29 +0000 (-0500) Subject: Merge pull request #1353 from bangerth/further-FEValues-cleanups-13 X-Git-Tag: v8.4.0-rc2~613 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7912db6fb65a7006c5af64e2c62abe02dadb7c92;p=dealii.git Merge pull request #1353 from bangerth/further-FEValues-cleanups-13 Remove the is_first_cell/clear_first_cell() mechanism from Mapping. --- 7912db6fb65a7006c5af64e2c62abe02dadb7c92 diff --cc source/fe/mapping_fe_field.cc index 2a51d304cb,a241d6aa66..9d538b8f26 --- a/source/fe/mapping_fe_field.cc +++ b/source/fe/mapping_fe_field.cc @@@ -214,27 -231,15 +214,24 @@@ MappingFEField: 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)