From: Wolfgang Bangerth Date: Tue, 11 Aug 2015 23:30:33 +0000 (-0500) Subject: Remove uses of Mapping::IDB::current_update_flags(). X-Git-Tag: v8.4.0-rc2~623^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F1331%2Fhead;p=dealii.git Remove uses of Mapping::IDB::current_update_flags(). This is the first step towards addressing #1305: MappingCartesian doesn't actually pre-compute anything at all (update_once is empty), so what current_update_flags() returns is always equal to update_each. I want to move to a place where we never use current_update_flags() and in the fill_fe_*_values() functions only reference update_each. This is simple for this class, because the two are the same. So replace all occurrences of current_update_flags() by update_each. --- diff --git a/source/fe/mapping_cartesian.cc b/source/fe/mapping_cartesian.cc index 89df6a5fb0..b04abbfdea 100644 --- a/source/fe/mapping_cartesian.cc +++ b/source/fe/mapping_cartesian.cc @@ -140,7 +140,7 @@ MappingCartesian::compute_fill (const typename Triangulation > &quadrature_points, std::vector > &normal_vectors) const { - const UpdateFlags update_flags(data.current_update_flags()); + const UpdateFlags update_flags = data.update_each; // some more sanity checks if (face_no != invalid_face_number) @@ -342,20 +342,20 @@ fill_fe_values (const typename Triangulation::cell_iterator &cell, // equal and are the product of the // local lengths in each coordinate // direction - if (data.current_update_flags() & (update_JxW_values | update_volume_elements)) + if (data.update_each & (update_JxW_values | update_volume_elements)) if (cell_similarity != CellSimilarity::translation) { double J = data.length[0]; for (unsigned int d=1; d::cell_iterator &cell, // "compute" the derivative of the Jacobian // at the quadrature points, which are all // zero of course - if (data.current_update_flags() & update_jacobian_grads) + if (data.update_each & update_jacobian_grads) if (cell_similarity != CellSimilarity::translation) for (unsigned int i=0; i(); @@ -374,7 +374,7 @@ fill_fe_values (const typename Triangulation::cell_iterator &cell, // "compute" inverse Jacobian at the // quadrature points, which are all // the same - if (data.current_update_flags() & update_inverse_jacobians) + if (data.update_each & update_inverse_jacobians) if (cell_similarity != CellSimilarity::translation) for (unsigned int i=0; i::cell_iterator & if (d != GeometryInfo::unit_normal_direction[face_no]) J *= data.length[d]; - if (data.current_update_flags() & update_JxW_values) + if (data.update_each & update_JxW_values) for (unsigned int i=0; i::cell_iterator & data.volume_element = J; } - if (data.current_update_flags() & update_jacobians) + if (data.update_each & update_jacobians) for (unsigned int i=0; i(); @@ -444,7 +444,7 @@ fill_fe_face_values (const typename Triangulation::cell_iterator & output_data.jacobians[i][d][d] = data.length[d]; } - if (data.current_update_flags() & update_inverse_jacobians) + if (data.update_each & update_inverse_jacobians) for (unsigned int i=0; i(); @@ -486,7 +486,7 @@ fill_fe_subface_values (const typename Triangulation::cell_iterato if (d != GeometryInfo::unit_normal_direction[face_no]) J *= data.length[d]; - if (data.current_update_flags() & update_JxW_values) + if (data.update_each & update_JxW_values) { // Here, // cell->face(face_no)->n_children() @@ -506,11 +506,11 @@ fill_fe_subface_values (const typename Triangulation::cell_iterato output_data.JxW_values[i] = J * quadrature.weight(i) / n_subfaces; } - if (data.current_update_flags() & update_boundary_forms) + if (data.update_each & update_boundary_forms) for (unsigned int i=0; i::cell_iterato data.volume_element = J; } - if (data.current_update_flags() & update_jacobians) + if (data.update_each & update_jacobians) for (unsigned int i=0; i(); @@ -526,7 +526,7 @@ fill_fe_subface_values (const typename Triangulation::cell_iterato output_data.jacobians[i][d][d] = data.length[d]; } - if (data.current_update_flags() & update_inverse_jacobians) + if (data.update_each & update_inverse_jacobians) for (unsigned int i=0; i();