From 934eeb3dade6ec9313b4952f6e9fca5fe540f083 Mon Sep 17 00:00:00 2001 From: David Wells Date: Wed, 25 May 2022 13:18:03 -0400 Subject: [PATCH] Add some more output to the ExodusII test. --- tests/grid/grid_in_exodusii.cc | 7 ++++- ...odusii.with_trilinos_with_seacas=on.output | 26 +++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) diff --git a/tests/grid/grid_in_exodusii.cc b/tests/grid/grid_in_exodusii.cc index b260e2bb3b..74d88a00aa 100644 --- a/tests/grid/grid_in_exodusii.cc +++ b/tests/grid/grid_in_exodusii.cc @@ -45,7 +45,7 @@ read_and_print(const std::string &filename, deallog << std::endl; } - for (const auto face : tria.active_face_iterators()) + for (const auto &face : tria.active_face_iterators()) { if (face->at_boundary()) { @@ -61,6 +61,11 @@ read_and_print(const std::string &filename, deallog << "Number of vertices: " << tria.get_vertices().size() << std::endl; deallog << "Number of cells: " << tria.n_cells() << std::endl; + for (const auto &cell : tria.active_cell_iterators()) + deallog << "cell " << cell->index() + << " type = " << cell->reference_cell().to_string() + << " volume = " << cell->measure() << std::endl; + GridOut go; go.write_vtk(tria, deallog.get_file_stream()); } diff --git a/tests/grid/grid_in_exodusii.with_trilinos_with_seacas=on.output b/tests/grid/grid_in_exodusii.with_trilinos_with_seacas=on.output index 95fdbf3a5c..14d6585b06 100644 --- a/tests/grid/grid_in_exodusii.with_trilinos_with_seacas=on.output +++ b/tests/grid/grid_in_exodusii.with_trilinos_with_seacas=on.output @@ -12,6 +12,11 @@ DEAL::face center = 7.00000 3.50000 face boundary id = 3 DEAL::face center = 3.50000 7.00000 face boundary id = 0 DEAL::Number of vertices: 8 DEAL::Number of cells: 5 +DEAL::cell 0 type = Quad volume = 10.0000 +DEAL::cell 1 type = Quad volume = 10.0000 +DEAL::cell 2 type = Quad volume = 10.0000 +DEAL::cell 3 type = Quad volume = 10.0000 +DEAL::cell 4 type = Quad volume = 9.00000 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII @@ -63,6 +68,11 @@ DEAL::face center = 7.00000 3.50000 7.00000 face boundary id = 0 DEAL::face center = 3.50000 7.00000 3.50000 face boundary id = 0 DEAL::Number of vertices: 8 DEAL::Number of cells: 5 +DEAL::cell 0 type = Quad volume = 14.1421 +DEAL::cell 1 type = Quad volume = 14.1421 +DEAL::cell 2 type = Quad volume = 14.1421 +DEAL::cell 3 type = Quad volume = 14.1421 +DEAL::cell 4 type = Quad volume = 12.7279 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII @@ -121,6 +131,10 @@ DEAL::face center = 5.50000 2.00000 4.00000 face boundary id = 0 DEAL::face center = 8.00000 1.33333 3.66667 face boundary id = 0 DEAL::Number of vertices: 13 DEAL::Number of cells: 4 +DEAL::cell 0 type = Hex volume = 27.0000 +DEAL::cell 1 type = Pyramid volume = 6.00000 +DEAL::cell 2 type = Tet volume = 2.00000 +DEAL::cell 3 type = Wedge volume = -15.0000 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII @@ -183,6 +197,10 @@ DEAL::face center = 5.50000 2.00000 4.00000 face boundary id = 0 DEAL::face center = 8.00000 1.33333 3.66667 face boundary id = 0 DEAL::Number of vertices: 29 DEAL::Number of cells: 4 +DEAL::cell 0 type = Hex volume = 27.0000 +DEAL::cell 1 type = Pyramid volume = 6.00000 +DEAL::cell 2 type = Tet volume = 2.00000 +DEAL::cell 3 type = Wedge volume = -15.0000 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII @@ -267,6 +285,10 @@ DEAL::face center = 5.50000 2.00000 4.00000 face boundary id = 3 DEAL::face center = 8.00000 1.33333 3.66667 face boundary id = 6 DEAL::Number of vertices: 13 DEAL::Number of cells: 4 +DEAL::cell 0 type = Hex volume = 27.0000 +DEAL::cell 1 type = Pyramid volume = 6.00000 +DEAL::cell 2 type = Tet volume = 2.00000 +DEAL::cell 3 type = Wedge volume = -15.0000 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII @@ -349,6 +371,10 @@ DEAL::face center = 5.50000 2.00000 4.00000 face manifold id = 3 DEAL::face center = 8.00000 1.33333 3.66667 face manifold id = 6 DEAL::Number of vertices: 13 DEAL::Number of cells: 4 +DEAL::cell 0 type = Hex volume = 27.0000 +DEAL::cell 1 type = Pyramid volume = 6.00000 +DEAL::cell 2 type = Tet volume = 2.00000 +DEAL::cell 3 type = Wedge volume = -15.0000 # vtk DataFile Version 3.0 Triangulation generated with deal.II ASCII -- 2.39.5