]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Merge pull request #10701 from peterrum/simplex_dataout_write_vtk
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Mon, 3 Aug 2020 10:35:29 +0000 (12:35 +0200)
committerGitHub <noreply@github.com>
Mon, 3 Aug 2020 10:35:29 +0000 (12:35 +0200)
Generalize DataOut::write_vtk for simplex mesh

1  2 
source/simplex/fe_lib.cc

index a3545d4e8d1906d2c9539e2f07764112d6d7929f,a4b0d0282f29f92a1bc5d71fa2127cb217690e28..abcde7aaca3deece026dde11876f9cc63d5e9bd2
@@@ -115,27 -115,27 +115,27 @@@ namespace Simple
        {
          if (degree == 1)
            {
+             this->unit_support_points.emplace_back(0.0, 0.0);
              this->unit_support_points.emplace_back(1.0, 0.0);
              this->unit_support_points.emplace_back(0.0, 1.0);
-             this->unit_support_points.emplace_back(0.0, 0.0);
  
              // TODO
 -            this->unit_face_support_points.emplace_back(0.0);
 -            this->unit_face_support_points.emplace_back(1.0);
 +            this->unit_face_support_points[0].emplace_back(0.0);
 +            this->unit_face_support_points[0].emplace_back(1.0);
            }
          else if (degree == 2)
            {
+             this->unit_support_points.emplace_back(0.0, 0.0);
              this->unit_support_points.emplace_back(1.0, 0.0);
              this->unit_support_points.emplace_back(0.0, 1.0);
-             this->unit_support_points.emplace_back(0.0, 0.0);
+             this->unit_support_points.emplace_back(0.5, 0.0);
              this->unit_support_points.emplace_back(0.5, 0.5);
              this->unit_support_points.emplace_back(0.0, 0.5);
-             this->unit_support_points.emplace_back(0.5, 0.0);
  
              // TODO
 -            this->unit_face_support_points.emplace_back(0.0);
 -            this->unit_face_support_points.emplace_back(1.0);
 -            this->unit_face_support_points.emplace_back(0.5);
 +            this->unit_face_support_points[0].emplace_back(0.0);
 +            this->unit_face_support_points[0].emplace_back(1.0);
 +            this->unit_face_support_points[0].emplace_back(0.5);
            }
          else
            {

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.