From 3aa74103bd3a7470471ac05cab0e09bca4e84817 Mon Sep 17 00:00:00 2001
From: Wolfgang Bangerth <bangerth@math.tamu.edu>
Date: Tue, 12 Jan 2016 13:44:11 -0600
Subject: [PATCH] Add VTK output to a test.

---
 tests/mpi/data_out_faces_01.cc                |   7 +
 ...t_faces_01.mpirun=3.with_petsc=true.output | 272 ++++++++++++++++++
 2 files changed, 279 insertions(+)

diff --git a/tests/mpi/data_out_faces_01.cc b/tests/mpi/data_out_faces_01.cc
index f570aac3c8..be8982059c 100644
--- a/tests/mpi/data_out_faces_01.cc
+++ b/tests/mpi/data_out_faces_01.cc
@@ -137,6 +137,9 @@ namespace pdd
     // make sure the following works in parallel
     data_out.build_patches ();
 
+    // on processor 0 also output some data so we can compare
+    if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)==0)
+      data_out.write_vtk (deallog.get_file_stream());
 
     // Then generate the output for the faces.
     DataOutFaces<dim> data_out_faces;
@@ -144,6 +147,10 @@ namespace pdd
     data_out_faces.add_data_vector (solution, "u");
     // make sure the following works in parallel
     data_out_faces.build_patches (fe.degree);
+
+    // on processor 0 also output some data so we can compare
+    if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD)==0)
+      data_out_faces.write_vtk (deallog.get_file_stream());
   }
   // @sect4{PDDProblem::run}
 
diff --git a/tests/mpi/data_out_faces_01.mpirun=3.with_petsc=true.output b/tests/mpi/data_out_faces_01.mpirun=3.with_petsc=true.output
index 3f2ff2d6cc..397cf918f6 100644
--- a/tests/mpi/data_out_faces_01.mpirun=3.with_petsc=true.output
+++ b/tests/mpi/data_out_faces_01.mpirun=3.with_petsc=true.output
@@ -1,4 +1,276 @@
 
+# vtk DataFile Version 3.0
+#This file was generated 
+ASCII
+DATASET UNSTRUCTURED_GRID
+
+POINTS 160 double
+-1.00000 -1.00000 0
+-0.800000 -1.00000 0
+-1.00000 -0.833333 0
+-0.800000 -0.833333 0
+-0.800000 -1.00000 0
+-0.600000 -1.00000 0
+-0.800000 -0.833333 0
+-0.600000 -0.833333 0
+-0.600000 -1.00000 0
+-0.400000 -1.00000 0
+-0.600000 -0.833333 0
+-0.400000 -0.833333 0
+-0.400000 -1.00000 0
+-0.200000 -1.00000 0
+-0.400000 -0.833333 0
+-0.200000 -0.833333 0
+-0.200000 -1.00000 0
+0.00000 -1.00000 0
+-0.200000 -0.833333 0
+0.00000 -0.833333 0
+0.00000 -1.00000 0
+0.200000 -1.00000 0
+0.00000 -0.833333 0
+0.200000 -0.833333 0
+0.200000 -1.00000 0
+0.400000 -1.00000 0
+0.200000 -0.833333 0
+0.400000 -0.833333 0
+0.400000 -1.00000 0
+0.600000 -1.00000 0
+0.400000 -0.833333 0
+0.600000 -0.833333 0
+-1.00000 -0.833333 0
+-0.800000 -0.833333 0
+-1.00000 -0.666667 0
+-0.800000 -0.666667 0
+-0.800000 -0.833333 0
+-0.600000 -0.833333 0
+-0.800000 -0.666667 0
+-0.600000 -0.666667 0
+-0.600000 -0.833333 0
+-0.400000 -0.833333 0
+-0.600000 -0.666667 0
+-0.400000 -0.666667 0
+-0.400000 -0.833333 0
+-0.200000 -0.833333 0
+-0.400000 -0.666667 0
+-0.200000 -0.666667 0
+-0.200000 -0.833333 0
+0.00000 -0.833333 0
+-0.200000 -0.666667 0
+0.00000 -0.666667 0
+0.00000 -0.833333 0
+0.200000 -0.833333 0
+0.00000 -0.666667 0
+0.200000 -0.666667 0
+0.200000 -0.833333 0
+0.400000 -0.833333 0
+0.200000 -0.666667 0
+0.400000 -0.666667 0
+0.400000 -0.833333 0
+0.600000 -0.833333 0
+0.400000 -0.666667 0
+0.600000 -0.666667 0
+-1.00000 -0.666667 0
+-0.800000 -0.666667 0
+-1.00000 -0.500000 0
+-0.800000 -0.500000 0
+-0.800000 -0.666667 0
+-0.600000 -0.666667 0
+-0.800000 -0.500000 0
+-0.600000 -0.500000 0
+-0.600000 -0.666667 0
+-0.400000 -0.666667 0
+-0.600000 -0.500000 0
+-0.400000 -0.500000 0
+-0.400000 -0.666667 0
+-0.200000 -0.666667 0
+-0.400000 -0.500000 0
+-0.200000 -0.500000 0
+-0.200000 -0.666667 0
+0.00000 -0.666667 0
+-0.200000 -0.500000 0
+0.00000 -0.500000 0
+0.00000 -0.666667 0
+0.200000 -0.666667 0
+0.00000 -0.500000 0
+0.200000 -0.500000 0
+0.200000 -0.666667 0
+0.400000 -0.666667 0
+0.200000 -0.500000 0
+0.400000 -0.500000 0
+0.400000 -0.666667 0
+0.600000 -0.666667 0
+0.400000 -0.500000 0
+0.600000 -0.500000 0
+-1.00000 -0.500000 0
+-0.800000 -0.500000 0
+-1.00000 -0.333333 0
+-0.800000 -0.333333 0
+-0.800000 -0.500000 0
+-0.600000 -0.500000 0
+-0.800000 -0.333333 0
+-0.600000 -0.333333 0
+-0.600000 -0.500000 0
+-0.400000 -0.500000 0
+-0.600000 -0.333333 0
+-0.400000 -0.333333 0
+-0.400000 -0.500000 0
+-0.200000 -0.500000 0
+-0.400000 -0.333333 0
+-0.200000 -0.333333 0
+-0.200000 -0.500000 0
+0.00000 -0.500000 0
+-0.200000 -0.333333 0
+0.00000 -0.333333 0
+0.00000 -0.500000 0
+0.200000 -0.500000 0
+0.00000 -0.333333 0
+0.200000 -0.333333 0
+0.200000 -0.500000 0
+0.400000 -0.500000 0
+0.200000 -0.333333 0
+0.400000 -0.333333 0
+0.400000 -0.500000 0
+0.600000 -0.500000 0
+0.400000 -0.333333 0
+0.600000 -0.333333 0
+-1.00000 -0.333333 0
+-0.800000 -0.333333 0
+-1.00000 -0.166667 0
+-0.800000 -0.166667 0
+-0.800000 -0.333333 0
+-0.600000 -0.333333 0
+-0.800000 -0.166667 0
+-0.600000 -0.166667 0
+-0.600000 -0.333333 0
+-0.400000 -0.333333 0
+-0.600000 -0.166667 0
+-0.400000 -0.166667 0
+-0.400000 -0.333333 0
+-0.200000 -0.333333 0
+-0.400000 -0.166667 0
+-0.200000 -0.166667 0
+-1.00000 -0.166667 0
+-0.800000 -0.166667 0
+-1.00000 0.00000 0
+-0.800000 0.00000 0
+-0.800000 -0.166667 0
+-0.600000 -0.166667 0
+-0.800000 0.00000 0
+-0.600000 0.00000 0
+-0.600000 -0.166667 0
+-0.400000 -0.166667 0
+-0.600000 0.00000 0
+-0.400000 0.00000 0
+-0.400000 -0.166667 0
+-0.200000 -0.166667 0
+-0.400000 0.00000 0
+-0.200000 0.00000 0
+
+CELLS 40 200
+4	0	1	3	2
+4	4	5	7	6
+4	8	9	11	10
+4	12	13	15	14
+4	16	17	19	18
+4	20	21	23	22
+4	24	25	27	26
+4	28	29	31	30
+4	32	33	35	34
+4	36	37	39	38
+4	40	41	43	42
+4	44	45	47	46
+4	48	49	51	50
+4	52	53	55	54
+4	56	57	59	58
+4	60	61	63	62
+4	64	65	67	66
+4	68	69	71	70
+4	72	73	75	74
+4	76	77	79	78
+4	80	81	83	82
+4	84	85	87	86
+4	88	89	91	90
+4	92	93	95	94
+4	96	97	99	98
+4	100	101	103	102
+4	104	105	107	106
+4	108	109	111	110
+4	112	113	115	114
+4	116	117	119	118
+4	120	121	123	122
+4	124	125	127	126
+4	128	129	131	130
+4	132	133	135	134
+4	136	137	139	138
+4	140	141	143	142
+4	144	145	147	146
+4	148	149	151	150
+4	152	153	155	154
+4	156	157	159	158
+
+CELL_TYPES 40
+ 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9 9
+POINT_DATA 160
+SCALARS u double 1
+LOOKUP_TABLE default
+1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 0.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 
+# vtk DataFile Version 3.0
+#This file was generated 
+ASCII
+DATASET UNSTRUCTURED_GRID
+
+POINTS 28 double
+-1.00000 -1.00000 0
+-1.00000 -0.833333 0
+-1.00000 -1.00000 0
+-0.800000 -1.00000 0
+-0.800000 -1.00000 0
+-0.600000 -1.00000 0
+-0.600000 -1.00000 0
+-0.400000 -1.00000 0
+-0.400000 -1.00000 0
+-0.200000 -1.00000 0
+-0.200000 -1.00000 0
+0.00000 -1.00000 0
+0.00000 -1.00000 0
+0.200000 -1.00000 0
+0.200000 -1.00000 0
+0.400000 -1.00000 0
+0.400000 -1.00000 0
+0.600000 -1.00000 0
+-1.00000 -0.833333 0
+-1.00000 -0.666667 0
+-1.00000 -0.666667 0
+-1.00000 -0.500000 0
+-1.00000 -0.500000 0
+-1.00000 -0.333333 0
+-1.00000 -0.333333 0
+-1.00000 -0.166667 0
+-1.00000 -0.166667 0
+-1.00000 0.00000 0
+
+CELLS 14 42
+2	0	1
+2	2	3
+2	4	5
+2	6	7
+2	8	9
+2	10	11
+2	12	13
+2	14	15
+2	16	17
+2	18	19
+2	20	21
+2	22	23
+2	24	25
+2	26	27
+
+CELL_TYPES 14
+ 3 3 3 3 3 3 3 3 3 3 3 3 3 3
+POINT_DATA 28
+SCALARS u double 1
+LOOKUP_TABLE default
+1.00000 1.00000 1.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 0.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 1.00000 
 
 
 
-- 
2.39.5