]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
bug removed
authorguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Mar 2001 17:04:38 +0000 (17:04 +0000)
committerguido <guido@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 27 Mar 2001 17:04:38 +0000 (17:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@4311 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 4fa98b1cbc0e5fc3d71523d1d37b88aa9338a6ab..6bcc145253800d9e7ead1b820d85c43fcb7240d3 100644 (file)
@@ -635,29 +635,6 @@ FEFaceValues<dim>::FEFaceValues (const Mapping<dim>       &mapping,
   mapping_data = mapping.get_face_data(flags, quadrature);
   fe_data      = fe.get_face_data(flags, mapping, quadrature);
 
-                                  // The get_face_data functions
-                                  // might have added an update flag.
-                                  // Therefore collect all flags
-                                  // again.
-                                  //
-                                  // E.g. if update_JxW_values is set
-                                  // the update_boundary_forms flag
-                                  // is added within the
-                                  // Mapping::get_face_data function.
-                                  // If also update_normal_vectors is
-                                  // set this update_boundary_forms
-                                  // flag was already set by the
-                                  // update_once or update_each
-                                  // function resulting in no change
-                                  // in flags below, but if
-                                  // update_normal_vectors is not set
-                                  // this actually makes a
-                                  // difference.
-  flags |= mapping_data->update_once
-          | mapping_data->update_each
-          | fe_data->update_once
-          | fe_data->update_each;
-  
                                   // set up objects within this class
   FEValuesData<dim>::initialize(n_quadrature_points,
                                dofs_per_cell,
@@ -697,29 +674,6 @@ FEFaceValues<dim>::FEFaceValues (const FiniteElement<dim> &fe,
   mapping_data = mapping->get_face_data(flags, quadrature);
   fe_data      = fe.get_face_data(flags, *mapping, quadrature);
   
-                                  // The get_face_data functions
-                                  // might have added an update flag.
-                                  // Therefore collect all flags
-                                  // again.
-                                  //
-                                  // E.g. if update_JxW_values is set
-                                  // the update_boundary_forms flag
-                                  // is added within the
-                                  // Mapping::get_face_data function.
-                                  // If also update_normal_vectors is
-                                  // set this update_boundary_forms
-                                  // flag was already set by the
-                                  // update_once or update_each
-                                  // function resulting in no change
-                                  // in flags below, but if
-                                  // update_normal_vectors is not set
-                                  // this actually makes a
-                                  // difference.
-  flags |= mapping_data->update_once
-          | mapping_data->update_each
-          | fe_data->update_once
-          | fe_data->update_each;
-  
                                   // set up objects within this class
   FEValuesData<dim>::initialize(n_quadrature_points,
                                dofs_per_cell,
index f935479361da8fed859015ca4b7b6e1166d5c990..d877681a7d2ec3acdc0fa7580e96da394f3f61b6 100644 (file)
@@ -288,10 +288,11 @@ MappingQ1<dim>::update_each (const UpdateFlags in) const
 
   //  cerr << "Mapping-each " << hex << in << ' ' << out;
   
-  if (in & update_normal_vectors)
+  if (out & (update_JxW_values
+           |update_normal_vectors))
     out |= update_boundary_forms;
   
-  if (in & (update_covariant_transformation
+  if (out & (update_covariant_transformation
            | update_JxW_values
            | update_boundary_forms
            | update_normal_vectors))

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.