45
45
*
46
46
*/
47
47
static int
48
- t8_adapt_menger_quad (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
49
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family, const int num_elements,
48
+ t8_adapt_menger_quad (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
49
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
50
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
51
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
50
52
t8_element_t *elements[])
51
53
{
52
54
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
@@ -77,8 +79,10 @@ t8_adapt_menger_quad (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t w
77
79
* of the mesh or leave it untouched. Refine the remaining elements.
78
80
*/
79
81
static int
80
- t8_adapt_sierpinski_tri (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
81
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family, const int num_elements,
82
+ t8_adapt_sierpinski_tri (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
83
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
84
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
85
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
82
86
t8_element_t *elements[])
83
87
{
84
88
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
@@ -102,8 +106,10 @@ t8_adapt_sierpinski_tri (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_
102
106
* of the mesh or leave them untouched. Refine the remaining elements.
103
107
*/
104
108
static int
105
- t8_adapt_menger_hex (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
106
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family, const int num_elements,
109
+ t8_adapt_menger_hex (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
110
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
111
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
112
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
107
113
t8_element_t *elements[])
108
114
{
109
115
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
@@ -151,8 +157,10 @@ t8_adapt_menger_hex (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t wh
151
157
* of the mesh or leave it untouched. Refine the remaining elements.
152
158
*/
153
159
static int
154
- t8_adapt_sierpinski_tet (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
155
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family, const int num_elements,
160
+ t8_adapt_sierpinski_tet (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
161
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
162
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
163
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
156
164
t8_element_t *elements[])
157
165
{
158
166
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
@@ -176,9 +184,11 @@ t8_adapt_sierpinski_tet (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_
176
184
* of the mesh or leave it untouched. Refine the remaining elements.
177
185
*/
178
186
static int
179
- t8_adapt_sierpinski_prism (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
180
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family,
181
- const int num_elements, t8_element_t *elements[])
187
+ t8_adapt_sierpinski_prism (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
188
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
189
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
190
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
191
+ t8_element_t *elements[])
182
192
{
183
193
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
184
194
const int level_max = adapt_data[0 ];
@@ -201,9 +211,11 @@ t8_adapt_sierpinski_prism (t8_forest_t forest, t8_forest_t forest_from, t8_locid
201
211
* of the mesh or leave it untouched. Refine the remaining elements.
202
212
*/
203
213
static int
204
- t8_adapt_sierpinski_pyramid (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree,
205
- t8_eclass_t tree_class, t8_locidx_t lelement_id, const t8_scheme *scheme,
206
- const int is_family, const int num_elements, t8_element_t *elements[])
214
+ t8_adapt_sierpinski_pyramid (t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
215
+ [[maybe_unused]] t8_locidx_t which_tree, t8_eclass_t tree_class,
216
+ [[maybe_unused]] t8_locidx_t lelement_id, const t8_scheme *scheme,
217
+ [[maybe_unused]] const int is_family, [[maybe_unused]] const int num_elements,
218
+ t8_element_t *elements[])
207
219
{
208
220
const int *adapt_data = (const int *) t8_forest_get_user_data (forest);
209
221
const int level_max = adapt_data[0 ];
@@ -223,9 +235,11 @@ t8_adapt_sierpinski_pyramid (t8_forest_t forest, t8_forest_t forest_from, t8_loc
223
235
224
236
/* Coarse every family in the mesh. */
225
237
static int
226
- t8_adapt_coarse (t8_forest_t forest, t8_forest_t forest_from, t8_locidx_t which_tree, t8_eclass_t tree_class,
227
- t8_locidx_t lelement_id, const t8_scheme *scheme, const int is_family, const int num_elements,
228
- t8_element_t *elements[])
238
+ t8_adapt_coarse ([[maybe_unused]] t8_forest_t forest, [[maybe_unused]] t8_forest_t forest_from,
239
+ [[maybe_unused]] t8_locidx_t which_tree, [[maybe_unused]] t8_eclass_t tree_class,
240
+ [[maybe_unused]] t8_locidx_t lelement_id, [[maybe_unused]] const t8_scheme *scheme,
241
+ const int is_family, [[maybe_unused]] const int num_elements,
242
+ [[maybe_unused]] t8_element_t *elements[])
229
243
{
230
244
if (is_family) {
231
245
return -1 ;
0 commit comments