]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Undo last change. Was obviously bogus, since only holds if n_subdivisions==1.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jul 2003 16:27:21 +0000 (16:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 3 Jul 2003 16:27:21 +0000 (16:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@7838 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out_faces.cc
deal.II/deal.II/source/numerics/data_out_rotation.cc

index 37705fa45f16c67122b6871fbbedbc9599ecb474..a5225216b8b9830bcc4d607c6906f0f6bc3c14c0 100644 (file)
@@ -157,7 +157,14 @@ void DataOutFaces<dim>::build_patches (const unsigned int n_subdivisions,
 
   const unsigned int n_threads = (DEAL_II_USE_MT ? n_threads_ : 1);
 
-  const unsigned int n_q_points     = GeometryInfo<dim-1>::vertices_per_cell;
+                                  // before we start the loop:
+                                  // create a quadrature rule that
+                                  // actually has the points on this
+                                  // patch
+  QTrapez<1>       q_trapez;
+  QIterated<dim-1> patch_points (q_trapez, n_subdivisions);
+
+  const unsigned int n_q_points     = patch_points.n_quadrature_points;
   const unsigned int n_components   = this->dofs->get_fe().n_components();
   const unsigned int n_datasets     = this->dof_data.size() * n_components +
                                      this->cell_data.size();
index d90b119ca231849632f014d19ea05612b074e255..9a1ffa73e69821b7cc3c2afa19ed746b2e818329 100644 (file)
@@ -321,7 +321,14 @@ void DataOutRotation<dim>::build_patches (const unsigned int n_patches_per_circl
 
   const unsigned int n_threads = (DEAL_II_USE_MT ? n_threads_ : 1);
 
-  const unsigned int n_q_points     = GeometryInfo<dim>::vertices_per_cell;
+                                  // before we start the loop:
+                                  // create a quadrature rule that
+                                  // actually has the points on this
+                                  // patch
+  QTrapez<1>     q_trapez;
+  QIterated<dim> patch_points (q_trapez, n_subdivisions);
+
+  const unsigned int n_q_points     = patch_points.n_quadrature_points;
   const unsigned int n_components   = this->dofs->get_fe().n_components();
   const unsigned int n_datasets     = this->dof_data.size() * n_components +
                                      this->cell_data.size();

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.