From: Bruna Campos Date: Thu, 20 Mar 2025 14:15:26 +0000 (-0400) Subject: Add subdivided_hyper_L to grid generator test X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f42a2b235e444b0dddd50ccf1fcf525ab8cd38c9;p=dealii.git Add subdivided_hyper_L to grid generator test --- diff --git a/tests/grid/grid_generator_from_name_and_argument_02.cc b/tests/grid/grid_generator_from_name_and_argument_02.cc index e116024fac..2883b09d6e 100644 --- a/tests/grid/grid_generator_from_name_and_argument_02.cc +++ b/tests/grid/grid_generator_from_name_and_argument_02.cc @@ -1,7 +1,7 @@ // ------------------------------------------------------------------------ // // SPDX-License-Identifier: LGPL-2.1-or-later -// Copyright (C) 2019 - 2023 by the deal.II authors +// Copyright (C) 2019 - 2025 by the deal.II authors // // This file is part of the deal.II library. // @@ -61,4 +61,7 @@ main() "2, 2 : 0.0, 0.0 : 1.0, 2.0 : false"); test<3, 3>("subdivided_hyper_rectangle_with_simplices", "2, 2, 3 : 0.0, 0.0, 1.0 : 1.0, 2.0, 3.0 : false"); + + test<2, 2>("subdivided_hyper_L", "5, 5 : 0, 0 : 1, 1 : 2, 3"); + test<3, 3>("subdivided_hyper_L", "5, 5, 5 : 0, 0, 0 : 1, 1, 1 : 2, 2, 3"); } diff --git a/tests/grid/grid_generator_from_name_and_argument_02.output b/tests/grid/grid_generator_from_name_and_argument_02.output index 49262b9e5a..e5a39f8d22 100644 --- a/tests/grid/grid_generator_from_name_and_argument_02.output +++ b/tests/grid/grid_generator_from_name_and_argument_02.output @@ -416,3 +416,383 @@ $ELM 59 4 0 0 4 26 32 36 35 60 4 0 0 4 24 26 32 36 $ENDELM +DEAL::Generating Triangulation<2, 2> : subdivided_hyper_L(5, 5 : 0, 0 : 1, 1 : 2, 3) +$NOD +30 +1 0.400000 0.00000 0 +2 0.600000 0.00000 0 +3 0.800000 0.00000 0 +4 1.00000 0.00000 0 +5 0.400000 0.200000 0 +6 0.600000 0.200000 0 +7 0.800000 0.200000 0 +8 1.00000 0.200000 0 +9 0.400000 0.400000 0 +10 0.600000 0.400000 0 +11 0.800000 0.400000 0 +12 1.00000 0.400000 0 +13 0.00000 0.600000 0 +14 0.200000 0.600000 0 +15 0.400000 0.600000 0 +16 0.600000 0.600000 0 +17 0.800000 0.600000 0 +18 1.00000 0.600000 0 +19 0.00000 0.800000 0 +20 0.200000 0.800000 0 +21 0.400000 0.800000 0 +22 0.600000 0.800000 0 +23 0.800000 0.800000 0 +24 1.00000 0.800000 0 +25 0.00000 1.00000 0 +26 0.200000 1.00000 0 +27 0.400000 1.00000 0 +28 0.600000 1.00000 0 +29 0.800000 1.00000 0 +30 1.00000 1.00000 0 +$ENDNOD +$ELM +19 +1 3 0 0 4 1 2 6 5 +2 3 0 0 4 2 3 7 6 +3 3 0 0 4 3 4 8 7 +4 3 0 0 4 5 6 10 9 +5 3 0 0 4 6 7 11 10 +6 3 0 0 4 7 8 12 11 +7 3 0 0 4 9 10 16 15 +8 3 0 0 4 10 11 17 16 +9 3 0 0 4 11 12 18 17 +10 3 0 0 4 13 14 20 19 +11 3 0 0 4 14 15 21 20 +12 3 0 0 4 15 16 22 21 +13 3 0 0 4 16 17 23 22 +14 3 0 0 4 17 18 24 23 +15 3 0 0 4 19 20 26 25 +16 3 0 0 4 20 21 27 26 +17 3 0 0 4 21 22 28 27 +18 3 0 0 4 22 23 29 28 +19 3 0 0 4 23 24 30 29 +$ENDELM +DEAL::Generating Triangulation<3, 3> : subdivided_hyper_L(5, 5, 5 : 0, 0, 0 : 1, 1, 1 : 2, 2, 3) +$NOD +204 +1 0.400000 0.00000 0.00000 +2 0.600000 0.00000 0.00000 +3 0.800000 0.00000 0.00000 +4 1.00000 0.00000 0.00000 +5 0.400000 0.200000 0.00000 +6 0.600000 0.200000 0.00000 +7 0.800000 0.200000 0.00000 +8 1.00000 0.200000 0.00000 +9 0.00000 0.400000 0.00000 +10 0.200000 0.400000 0.00000 +11 0.400000 0.400000 0.00000 +12 0.600000 0.400000 0.00000 +13 0.800000 0.400000 0.00000 +14 1.00000 0.400000 0.00000 +15 0.00000 0.600000 0.00000 +16 0.200000 0.600000 0.00000 +17 0.400000 0.600000 0.00000 +18 0.600000 0.600000 0.00000 +19 0.800000 0.600000 0.00000 +20 1.00000 0.600000 0.00000 +21 0.00000 0.800000 0.00000 +22 0.200000 0.800000 0.00000 +23 0.400000 0.800000 0.00000 +24 0.600000 0.800000 0.00000 +25 0.800000 0.800000 0.00000 +26 1.00000 0.800000 0.00000 +27 0.00000 1.00000 0.00000 +28 0.200000 1.00000 0.00000 +29 0.400000 1.00000 0.00000 +30 0.600000 1.00000 0.00000 +31 0.800000 1.00000 0.00000 +32 1.00000 1.00000 0.00000 +33 0.400000 0.00000 0.200000 +34 0.600000 0.00000 0.200000 +35 0.800000 0.00000 0.200000 +36 1.00000 0.00000 0.200000 +37 0.400000 0.200000 0.200000 +38 0.600000 0.200000 0.200000 +39 0.800000 0.200000 0.200000 +40 1.00000 0.200000 0.200000 +41 0.00000 0.400000 0.200000 +42 0.200000 0.400000 0.200000 +43 0.400000 0.400000 0.200000 +44 0.600000 0.400000 0.200000 +45 0.800000 0.400000 0.200000 +46 1.00000 0.400000 0.200000 +47 0.00000 0.600000 0.200000 +48 0.200000 0.600000 0.200000 +49 0.400000 0.600000 0.200000 +50 0.600000 0.600000 0.200000 +51 0.800000 0.600000 0.200000 +52 1.00000 0.600000 0.200000 +53 0.00000 0.800000 0.200000 +54 0.200000 0.800000 0.200000 +55 0.400000 0.800000 0.200000 +56 0.600000 0.800000 0.200000 +57 0.800000 0.800000 0.200000 +58 1.00000 0.800000 0.200000 +59 0.00000 1.00000 0.200000 +60 0.200000 1.00000 0.200000 +61 0.400000 1.00000 0.200000 +62 0.600000 1.00000 0.200000 +63 0.800000 1.00000 0.200000 +64 1.00000 1.00000 0.200000 +65 0.400000 0.00000 0.400000 +66 0.600000 0.00000 0.400000 +67 0.800000 0.00000 0.400000 +68 1.00000 0.00000 0.400000 +69 0.400000 0.200000 0.400000 +70 0.600000 0.200000 0.400000 +71 0.800000 0.200000 0.400000 +72 1.00000 0.200000 0.400000 +73 0.00000 0.400000 0.400000 +74 0.200000 0.400000 0.400000 +75 0.400000 0.400000 0.400000 +76 0.600000 0.400000 0.400000 +77 0.800000 0.400000 0.400000 +78 1.00000 0.400000 0.400000 +79 0.00000 0.600000 0.400000 +80 0.200000 0.600000 0.400000 +81 0.400000 0.600000 0.400000 +82 0.600000 0.600000 0.400000 +83 0.800000 0.600000 0.400000 +84 1.00000 0.600000 0.400000 +85 0.00000 0.800000 0.400000 +86 0.200000 0.800000 0.400000 +87 0.400000 0.800000 0.400000 +88 0.600000 0.800000 0.400000 +89 0.800000 0.800000 0.400000 +90 1.00000 0.800000 0.400000 +91 0.00000 1.00000 0.400000 +92 0.200000 1.00000 0.400000 +93 0.400000 1.00000 0.400000 +94 0.600000 1.00000 0.400000 +95 0.800000 1.00000 0.400000 +96 1.00000 1.00000 0.400000 +97 0.00000 0.00000 0.600000 +98 0.200000 0.00000 0.600000 +99 0.400000 0.00000 0.600000 +100 0.600000 0.00000 0.600000 +101 0.800000 0.00000 0.600000 +102 1.00000 0.00000 0.600000 +103 0.00000 0.200000 0.600000 +104 0.200000 0.200000 0.600000 +105 0.400000 0.200000 0.600000 +106 0.600000 0.200000 0.600000 +107 0.800000 0.200000 0.600000 +108 1.00000 0.200000 0.600000 +109 0.00000 0.400000 0.600000 +110 0.200000 0.400000 0.600000 +111 0.400000 0.400000 0.600000 +112 0.600000 0.400000 0.600000 +113 0.800000 0.400000 0.600000 +114 1.00000 0.400000 0.600000 +115 0.00000 0.600000 0.600000 +116 0.200000 0.600000 0.600000 +117 0.400000 0.600000 0.600000 +118 0.600000 0.600000 0.600000 +119 0.800000 0.600000 0.600000 +120 1.00000 0.600000 0.600000 +121 0.00000 0.800000 0.600000 +122 0.200000 0.800000 0.600000 +123 0.400000 0.800000 0.600000 +124 0.600000 0.800000 0.600000 +125 0.800000 0.800000 0.600000 +126 1.00000 0.800000 0.600000 +127 0.00000 1.00000 0.600000 +128 0.200000 1.00000 0.600000 +129 0.400000 1.00000 0.600000 +130 0.600000 1.00000 0.600000 +131 0.800000 1.00000 0.600000 +132 1.00000 1.00000 0.600000 +133 0.00000 0.00000 0.800000 +134 0.200000 0.00000 0.800000 +135 0.400000 0.00000 0.800000 +136 0.600000 0.00000 0.800000 +137 0.800000 0.00000 0.800000 +138 1.00000 0.00000 0.800000 +139 0.00000 0.200000 0.800000 +140 0.200000 0.200000 0.800000 +141 0.400000 0.200000 0.800000 +142 0.600000 0.200000 0.800000 +143 0.800000 0.200000 0.800000 +144 1.00000 0.200000 0.800000 +145 0.00000 0.400000 0.800000 +146 0.200000 0.400000 0.800000 +147 0.400000 0.400000 0.800000 +148 0.600000 0.400000 0.800000 +149 0.800000 0.400000 0.800000 +150 1.00000 0.400000 0.800000 +151 0.00000 0.600000 0.800000 +152 0.200000 0.600000 0.800000 +153 0.400000 0.600000 0.800000 +154 0.600000 0.600000 0.800000 +155 0.800000 0.600000 0.800000 +156 1.00000 0.600000 0.800000 +157 0.00000 0.800000 0.800000 +158 0.200000 0.800000 0.800000 +159 0.400000 0.800000 0.800000 +160 0.600000 0.800000 0.800000 +161 0.800000 0.800000 0.800000 +162 1.00000 0.800000 0.800000 +163 0.00000 1.00000 0.800000 +164 0.200000 1.00000 0.800000 +165 0.400000 1.00000 0.800000 +166 0.600000 1.00000 0.800000 +167 0.800000 1.00000 0.800000 +168 1.00000 1.00000 0.800000 +169 0.00000 0.00000 1.00000 +170 0.200000 0.00000 1.00000 +171 0.400000 0.00000 1.00000 +172 0.600000 0.00000 1.00000 +173 0.800000 0.00000 1.00000 +174 1.00000 0.00000 1.00000 +175 0.00000 0.200000 1.00000 +176 0.200000 0.200000 1.00000 +177 0.400000 0.200000 1.00000 +178 0.600000 0.200000 1.00000 +179 0.800000 0.200000 1.00000 +180 1.00000 0.200000 1.00000 +181 0.00000 0.400000 1.00000 +182 0.200000 0.400000 1.00000 +183 0.400000 0.400000 1.00000 +184 0.600000 0.400000 1.00000 +185 0.800000 0.400000 1.00000 +186 1.00000 0.400000 1.00000 +187 0.00000 0.600000 1.00000 +188 0.200000 0.600000 1.00000 +189 0.400000 0.600000 1.00000 +190 0.600000 0.600000 1.00000 +191 0.800000 0.600000 1.00000 +192 1.00000 0.600000 1.00000 +193 0.00000 0.800000 1.00000 +194 0.200000 0.800000 1.00000 +195 0.400000 0.800000 1.00000 +196 0.600000 0.800000 1.00000 +197 0.800000 0.800000 1.00000 +198 1.00000 0.800000 1.00000 +199 0.00000 1.00000 1.00000 +200 0.200000 1.00000 1.00000 +201 0.400000 1.00000 1.00000 +202 0.600000 1.00000 1.00000 +203 0.800000 1.00000 1.00000 +204 1.00000 1.00000 1.00000 +$ENDNOD +$ELM +113 +1 5 0 0 8 1 2 34 33 5 6 38 37 +2 5 0 0 8 2 3 35 34 6 7 39 38 +3 5 0 0 8 3 4 36 35 7 8 40 39 +4 5 0 0 8 5 6 38 37 11 12 44 43 +5 5 0 0 8 6 7 39 38 12 13 45 44 +6 5 0 0 8 7 8 40 39 13 14 46 45 +7 5 0 0 8 9 10 42 41 15 16 48 47 +8 5 0 0 8 10 11 43 42 16 17 49 48 +9 5 0 0 8 11 12 44 43 17 18 50 49 +10 5 0 0 8 12 13 45 44 18 19 51 50 +11 5 0 0 8 13 14 46 45 19 20 52 51 +12 5 0 0 8 15 16 48 47 21 22 54 53 +13 5 0 0 8 16 17 49 48 22 23 55 54 +14 5 0 0 8 17 18 50 49 23 24 56 55 +15 5 0 0 8 18 19 51 50 24 25 57 56 +16 5 0 0 8 19 20 52 51 25 26 58 57 +17 5 0 0 8 21 22 54 53 27 28 60 59 +18 5 0 0 8 22 23 55 54 28 29 61 60 +19 5 0 0 8 23 24 56 55 29 30 62 61 +20 5 0 0 8 24 25 57 56 30 31 63 62 +21 5 0 0 8 25 26 58 57 31 32 64 63 +22 5 0 0 8 33 34 66 65 37 38 70 69 +23 5 0 0 8 34 35 67 66 38 39 71 70 +24 5 0 0 8 35 36 68 67 39 40 72 71 +25 5 0 0 8 37 38 70 69 43 44 76 75 +26 5 0 0 8 38 39 71 70 44 45 77 76 +27 5 0 0 8 39 40 72 71 45 46 78 77 +28 5 0 0 8 41 42 74 73 47 48 80 79 +29 5 0 0 8 42 43 75 74 48 49 81 80 +30 5 0 0 8 43 44 76 75 49 50 82 81 +31 5 0 0 8 44 45 77 76 50 51 83 82 +32 5 0 0 8 45 46 78 77 51 52 84 83 +33 5 0 0 8 47 48 80 79 53 54 86 85 +34 5 0 0 8 48 49 81 80 54 55 87 86 +35 5 0 0 8 49 50 82 81 55 56 88 87 +36 5 0 0 8 50 51 83 82 56 57 89 88 +37 5 0 0 8 51 52 84 83 57 58 90 89 +38 5 0 0 8 53 54 86 85 59 60 92 91 +39 5 0 0 8 54 55 87 86 60 61 93 92 +40 5 0 0 8 55 56 88 87 61 62 94 93 +41 5 0 0 8 56 57 89 88 62 63 95 94 +42 5 0 0 8 57 58 90 89 63 64 96 95 +43 5 0 0 8 65 66 100 99 69 70 106 105 +44 5 0 0 8 66 67 101 100 70 71 107 106 +45 5 0 0 8 67 68 102 101 71 72 108 107 +46 5 0 0 8 69 70 106 105 75 76 112 111 +47 5 0 0 8 70 71 107 106 76 77 113 112 +48 5 0 0 8 71 72 108 107 77 78 114 113 +49 5 0 0 8 73 74 110 109 79 80 116 115 +50 5 0 0 8 74 75 111 110 80 81 117 116 +51 5 0 0 8 75 76 112 111 81 82 118 117 +52 5 0 0 8 76 77 113 112 82 83 119 118 +53 5 0 0 8 77 78 114 113 83 84 120 119 +54 5 0 0 8 79 80 116 115 85 86 122 121 +55 5 0 0 8 80 81 117 116 86 87 123 122 +56 5 0 0 8 81 82 118 117 87 88 124 123 +57 5 0 0 8 82 83 119 118 88 89 125 124 +58 5 0 0 8 83 84 120 119 89 90 126 125 +59 5 0 0 8 85 86 122 121 91 92 128 127 +60 5 0 0 8 86 87 123 122 92 93 129 128 +61 5 0 0 8 87 88 124 123 93 94 130 129 +62 5 0 0 8 88 89 125 124 94 95 131 130 +63 5 0 0 8 89 90 126 125 95 96 132 131 +64 5 0 0 8 97 98 134 133 103 104 140 139 +65 5 0 0 8 98 99 135 134 104 105 141 140 +66 5 0 0 8 99 100 136 135 105 106 142 141 +67 5 0 0 8 100 101 137 136 106 107 143 142 +68 5 0 0 8 101 102 138 137 107 108 144 143 +69 5 0 0 8 103 104 140 139 109 110 146 145 +70 5 0 0 8 104 105 141 140 110 111 147 146 +71 5 0 0 8 105 106 142 141 111 112 148 147 +72 5 0 0 8 106 107 143 142 112 113 149 148 +73 5 0 0 8 107 108 144 143 113 114 150 149 +74 5 0 0 8 109 110 146 145 115 116 152 151 +75 5 0 0 8 110 111 147 146 116 117 153 152 +76 5 0 0 8 111 112 148 147 117 118 154 153 +77 5 0 0 8 112 113 149 148 118 119 155 154 +78 5 0 0 8 113 114 150 149 119 120 156 155 +79 5 0 0 8 115 116 152 151 121 122 158 157 +80 5 0 0 8 116 117 153 152 122 123 159 158 +81 5 0 0 8 117 118 154 153 123 124 160 159 +82 5 0 0 8 118 119 155 154 124 125 161 160 +83 5 0 0 8 119 120 156 155 125 126 162 161 +84 5 0 0 8 121 122 158 157 127 128 164 163 +85 5 0 0 8 122 123 159 158 128 129 165 164 +86 5 0 0 8 123 124 160 159 129 130 166 165 +87 5 0 0 8 124 125 161 160 130 131 167 166 +88 5 0 0 8 125 126 162 161 131 132 168 167 +89 5 0 0 8 133 134 170 169 139 140 176 175 +90 5 0 0 8 134 135 171 170 140 141 177 176 +91 5 0 0 8 135 136 172 171 141 142 178 177 +92 5 0 0 8 136 137 173 172 142 143 179 178 +93 5 0 0 8 137 138 174 173 143 144 180 179 +94 5 0 0 8 139 140 176 175 145 146 182 181 +95 5 0 0 8 140 141 177 176 146 147 183 182 +96 5 0 0 8 141 142 178 177 147 148 184 183 +97 5 0 0 8 142 143 179 178 148 149 185 184 +98 5 0 0 8 143 144 180 179 149 150 186 185 +99 5 0 0 8 145 146 182 181 151 152 188 187 +100 5 0 0 8 146 147 183 182 152 153 189 188 +101 5 0 0 8 147 148 184 183 153 154 190 189 +102 5 0 0 8 148 149 185 184 154 155 191 190 +103 5 0 0 8 149 150 186 185 155 156 192 191 +104 5 0 0 8 151 152 188 187 157 158 194 193 +105 5 0 0 8 152 153 189 188 158 159 195 194 +106 5 0 0 8 153 154 190 189 159 160 196 195 +107 5 0 0 8 154 155 191 190 160 161 197 196 +108 5 0 0 8 155 156 192 191 161 162 198 197 +109 5 0 0 8 157 158 194 193 163 164 200 199 +110 5 0 0 8 158 159 195 194 164 165 201 200 +111 5 0 0 8 159 160 196 195 165 166 202 201 +112 5 0 0 8 160 161 197 196 166 167 203 202 +113 5 0 0 8 161 162 198 197 167 168 204 203 +$ENDELM