]> https://gitweb.dealii.org/ - dealii.git/commitdiff
DataOut's only output is on MappingQ1. Therefore use FEValues constructors without...
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 5 Apr 2001 16:03:23 +0000 (16:03 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Thu, 5 Apr 2001 16:03:23 +0000 (16:03 +0000)
git-svn-id: https://svn.dealii.org/trunk@4382 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 76b0acfcf4c27ad134c943bfa285113e8050426c..396b35d4cd7b3eb254aacbef2a42564199f31b09 100644 (file)
 #include <grid/tria_iterator.h>
 #include <fe/fe.h>
 #include <fe/fe_values.h>
-#include <fe/mapping_q1.h>
-
-//TODO:[RH,GK] Replace global by local object; better: have two functions, or by default arg
-static const MappingQ1<deal_II_dimension> mapping;
 
 #ifdef DEAL_II_USE_MT
 #include <base/thread_management.h>
@@ -305,8 +301,10 @@ void DataOut<dim>::build_some_patches (Data data)
 {
   QTrapez<1>     q_trapez;
   QIterated<dim> patch_points (q_trapez, data.n_subdivisions);
-  
-  FEValues<dim> fe_patch_values(mapping, dofs->get_fe(),
+
+                                  // this constructor implicitely
+                                  // uses a MappingQ1 mapping
+  FEValues<dim> fe_patch_values(dofs->get_fe(),
                                patch_points,
                                update_values);
 
index 0dc7e4644f7b9747482a1cd67b8aee39e3699ed1..ae028c8140384705ed4deea9fd113b4fa352a983 100644 (file)
 #include <fe/fe.h>
 #include <fe/fe_values.h>
 
-#include <fe/mapping_q1.h>
-
-//TODO:[RH,GK] Replace global by local object; better: have two functions, or by default arg
-static const MappingQ1<deal_II_dimension> mapping;
-
 #ifdef DEAL_II_USE_MT
 #include <base/thread_management.h>
 #endif
@@ -41,8 +36,9 @@ void DataOutFaces<dim>::build_some_patches (Data data)
   QTrapez<1>        q_trapez;
   QIterated<dim-1>  patch_points (q_trapez, data.n_subdivisions);
   
-  FEFaceValues<dim> fe_patch_values(mapping,
-                                   dofs->get_fe(),
+                                  // this constructor implicitely
+                                  // uses a MappingQ1 mapping
+  FEFaceValues<dim> fe_patch_values(dofs->get_fe(),
                                    patch_points,
                                    update_values);
 
index 94ffba66326665c5de04d343b9be0238d1f62c2c..17f6b43f33d8580b62b6f113722de19eb285987c 100644 (file)
 #include <dofs/dof_handler.h>
 #include <dofs/dof_accessor.h>
 #include <grid/tria_iterator.h>
-#include <fe/mapping_q1.h>
 #include <fe/fe.h>
 #include <fe/fe_values.h>
 
-//TODO:[RH,GK] Replace global by local object; better: have two functions, or by default arg
-static const MappingQ1<deal_II_dimension> mapping;
-
 #ifdef DEAL_II_USE_MT
 #include <base/thread_management.h>
 #endif
@@ -44,9 +40,10 @@ void DataOutRotation<dim>::build_some_patches (Data data)
 {
   QTrapez<1>     q_trapez;
   QIterated<dim> patch_points (q_trapez, data.n_subdivisions);
-  
-  FEValues<dim> fe_patch_values(mapping,
-                               dofs->get_fe(),
+
+                                  // this constructor implicitely
+                                  // uses a MappingQ1 mapping
+  FEValues<dim> fe_patch_values(dofs->get_fe(),
                                patch_points,
                                update_values);
 
index a8d56ef5e7f35299b944a182f5ebdd61a5ac10ae..4a2712bfe89d476987dc5bdd0f238afa75c8baaa 100644 (file)
@@ -21,8 +21,6 @@
 #include <grid/tria_iterator.h>
 #include <fe/fe.h>
 #include <fe/fe_values.h>
-#include <fe/mapping_q1.h>
-
 
 
 // if necessary try to work around a bug in the IBM xlC compiler
@@ -31,9 +29,6 @@ using namespace std;
 #endif
 
 
-//TODO:[RH,GK] Replace global by local object; better: have two functions, or by default arg
-static const MappingQ1<deal_II_dimension> mapping;
-
 
 template <int dim>
 unsigned int
@@ -223,7 +218,10 @@ void DataOutStack<dim>::build_patches (const unsigned int n_subdivisions)
                                   // cell to these points
   QTrapez<1>     q_trapez;
   QIterated<dim> patch_points (q_trapez, n_subdivisions);
-  FEValues<dim>  fe_patch_values (mapping, dof_handler->get_fe(),
+  
+                                  // this constructor implicitely
+                                  // uses a MappingQ1 mapping
+  FEValues<dim>  fe_patch_values (dof_handler->get_fe(),
                                  patch_points,
                                  update_values);
   const unsigned int n_q_points = patch_points.n_quadrature_points;

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.