From 0e0d6534f0710f78901b72ec70a7f3b2e8897c01 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 7 Jan 2022 13:42:55 -0500 Subject: [PATCH] Modify a test to show a bug. --- tests/simplex/conv_hex_to_simplex.cc | 4 ++ tests/simplex/conv_hex_to_simplex.output | 75 +++++++++++++++++++++--- 2 files changed, 70 insertions(+), 9 deletions(-) diff --git a/tests/simplex/conv_hex_to_simplex.cc b/tests/simplex/conv_hex_to_simplex.cc index b9fb8fe792..96c512e14b 100644 --- a/tests/simplex/conv_hex_to_simplex.cc +++ b/tests/simplex/conv_hex_to_simplex.cc @@ -98,6 +98,10 @@ check_file() // for dim = spaceim flags.output_only_relevant = false; } + // Demonstrate a bug with copying manifold ids more clearly: + if (dim == 3) + flags.output_only_relevant = false; + GridOut grid_out; grid_out.set_flags(flags); diff --git a/tests/simplex/conv_hex_to_simplex.output b/tests/simplex/conv_hex_to_simplex.output index 39ea5ddaf4..de576130dd 100644 --- a/tests/simplex/conv_hex_to_simplex.output +++ b/tests/simplex/conv_hex_to_simplex.output @@ -568,7 +568,7 @@ POINTS 33 double 0.293743 0.00000 0.680892 0.364976 0.364976 0.856495 -CELLS 159 713 +CELLS 216 888 4 0 1 12 10 4 2 3 11 12 4 7 6 11 13 @@ -667,22 +667,26 @@ CELLS 159 713 4 30 13 31 4 3 1 0 10 3 0 1 12 +3 0 2 8 3 2 0 12 3 5 1 10 3 1 5 18 3 3 2 12 3 2 3 27 3 6 2 26 +3 2 6 8 3 3 1 21 3 1 3 12 3 15 3 21 3 3 15 27 3 0 4 10 +3 6 4 8 3 4 6 30 3 5 4 31 3 4 5 10 3 24 6 26 3 6 24 30 +3 0 8 4 3 14 1 18 3 1 14 21 3 15 14 20 @@ -709,6 +713,48 @@ CELLS 159 713 3 24 29 30 3 4 30 29 3 16 32 17 +2 0 1 +2 0 10 +2 1 10 +2 1 12 +2 12 0 +2 0 2 +2 2 8 +2 8 0 +2 2 12 +2 1 5 +2 5 10 +2 5 18 +2 1 18 +2 3 1 +2 1 21 +2 2 3 +2 3 12 +2 3 27 +2 2 27 +2 2 6 +2 2 26 +2 6 26 +2 6 8 +2 3 21 +2 3 15 +2 15 21 +2 15 27 +2 4 0 +2 4 10 +2 4 6 +2 4 8 +2 6 30 +2 30 4 +2 4 31 +2 5 4 +2 5 31 +2 6 24 +2 24 26 +2 24 30 +2 14 1 +2 18 14 +2 21 14 2 14 15 2 14 20 2 15 20 @@ -716,36 +762,47 @@ CELLS 159 713 2 17 20 2 17 25 2 15 25 +2 16 5 +2 16 31 +2 16 18 2 16 14 2 16 20 +2 16 29 +2 29 31 2 29 32 2 32 16 2 17 16 2 17 32 +2 23 2 +2 27 23 +2 23 26 +2 23 15 2 25 23 2 24 17 2 24 32 2 24 25 2 24 23 +2 29 4 2 29 24 +2 29 30 -CELL_TYPES 159 +CELL_TYPES 216 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 -5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 -3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 +5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 +3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 -CELL_DATA 159 +CELL_DAT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