]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Implemented an option to output the solution on deformed meshes, which
authoroliver <oliver@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 31 May 2005 16:08:00 +0000 (16:08 +0000)
committeroliver <oliver@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 31 May 2005 16:08:00 +0000 (16:08 +0000)
stem from a MappingQ1Eulerian.

git-svn-id: https://svn.dealii.org/trunk@10791 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/numerics/data_out.h

index a97dcf0ab7643a47d5f0c7bea7c5fc23a0186c64..29dfdc3e2d8daeda5e47a53a8ed02616af2b9c9f 100644 (file)
@@ -20,6 +20,7 @@
 #include <base/multithread_info.h>
 #include <base/data_out_base.h>
 #include <dofs/dof_handler.h>
+#include <fe/mapping.h>
 
 #include <boost/shared_ptr.hpp>
 
@@ -820,7 +821,20 @@ class DataOut : public DataOut_DoFData<dim,dim>
                                      * threads to be used to build
                                      * the patches is set to
                                      * <tt>multithread_info.n_default_threads</tt>.
+                                     *
+                                     * The optional parameter
+                                     * defining a mapping is especially
+                                     * intended for the Eulerian mapping.
+                                     * It offers an opportunity to
+                                     * watch the solution on the
+                                     * deformed triangulational on which
+                                     * the computation was actually carried
+                                     * out.
                                      */
+    virtual void build_patches (const Mapping<dim> &mapping,
+                               const unsigned int n_subdivisions = 1,
+                               const unsigned int n_threads      = multithread_info.n_default_threads);
+
     virtual void build_patches (const unsigned int n_subdivisions = 1,
                                const unsigned int n_threads      = multithread_info.n_default_threads);
 
@@ -893,6 +907,7 @@ class DataOut : public DataOut_DoFData<dim,dim>
        unsigned int n_components;
        unsigned int n_datasets;
        unsigned int n_subdivisions;
+        SmartPointer<const Mapping<dim> > mapping;
        std::vector<double>          patch_values;
        std::vector<Vector<double> > patch_values_system;
 

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.