From b5d41a3fbc08b806084f772c240a001c17619572 Mon Sep 17 00:00:00 2001 From: wolf Date: Thu, 3 Jul 2003 16:27:21 +0000 Subject: [PATCH] Undo last change. Was obviously bogus, since only holds if n_subdivisions==1. git-svn-id: https://svn.dealii.org/trunk@7838 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/data_out_faces.cc | 9 ++++++++- deal.II/deal.II/source/numerics/data_out_rotation.cc | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/deal.II/deal.II/source/numerics/data_out_faces.cc b/deal.II/deal.II/source/numerics/data_out_faces.cc index 37705fa45f..a5225216b8 100644 --- a/deal.II/deal.II/source/numerics/data_out_faces.cc +++ b/deal.II/deal.II/source/numerics/data_out_faces.cc @@ -157,7 +157,14 @@ void DataOutFaces::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::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 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(); diff --git a/deal.II/deal.II/source/numerics/data_out_rotation.cc b/deal.II/deal.II/source/numerics/data_out_rotation.cc index d90b119ca2..9a1ffa73e6 100644 --- a/deal.II/deal.II/source/numerics/data_out_rotation.cc +++ b/deal.II/deal.II/source/numerics/data_out_rotation.cc @@ -321,7 +321,14 @@ void DataOutRotation::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::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 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(); -- 2.39.5