]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Create data also for 2+1d
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Jul 2005 19:23:00 +0000 (19:23 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 25 Jul 2005 19:23:00 +0000 (19:23 +0000)
git-svn-id: https://svn.dealii.org/trunk@11194 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/data_out_stack.cc

index 53c33bc707a715ffe1a3a61b6b5b18194f81ae80..90413b95330d88c47c09e16dd9d5c219cb52c918 100644 (file)
@@ -276,6 +276,33 @@ void DataOutStack<dim>::build_patches (const unsigned int n_subdivisions)
                                                  parameter);
                break;
                
+          case 2:
+               patch->vertices[0] = Point<dim+1>(cell->vertex(0)(0),
+                                                 cell->vertex(0)(1),
+                                                 parameter-parameter_step);
+               patch->vertices[1] = Point<dim+1>(cell->vertex(1)(0),
+                                                 cell->vertex(1)(1),
+                                                 parameter-parameter_step);
+               patch->vertices[2] = Point<dim+1>(cell->vertex(2)(0),
+                                                 cell->vertex(2)(1),
+                                                 parameter-parameter_step);
+               patch->vertices[3] = Point<dim+1>(cell->vertex(3)(0),
+                                                 cell->vertex(3)(1),
+                                                 parameter-parameter_step);
+               patch->vertices[4] = Point<dim+1>(cell->vertex(0)(0),
+                                                 cell->vertex(0)(1),
+                                                 parameter);
+               patch->vertices[5] = Point<dim+1>(cell->vertex(1)(0),
+                                                 cell->vertex(1)(1),
+                                                 parameter);
+               patch->vertices[6] = Point<dim+1>(cell->vertex(2)(0),
+                                                 cell->vertex(2)(1),
+                                                 parameter);
+               patch->vertices[7] = Point<dim+1>(cell->vertex(3)(0),
+                                                 cell->vertex(3)(1),
+                                                 parameter);
+               break;
+       
          default:
                Assert (false, ExcNotImplemented());
        };

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.