From 0febb2c86ff86233504ac9f94ee6c5638cd07365 Mon Sep 17 00:00:00 2001 From: Carsten Burstedde Date: Thu, 7 Sep 2023 15:39:25 +0200 Subject: [PATCH] p8est_connectivity_new_drop: white space --- src/p8est_connectivity.c | 18 +++++++++++------- src/p8est_connectivity.h | 2 +- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/p8est_connectivity.c b/src/p8est_connectivity.c index 0c941a221..bc1e8f867 100644 --- a/src/p8est_connectivity.c +++ b/src/p8est_connectivity.c @@ -324,6 +324,7 @@ p8est_connectivity_new_rotwrap (void) p4est_connectivity_t * p8est_connectivity_new_drop (void) { +/* *INDENT-OFF* */ const p4est_topidx_t num_vertices = 24; const p4est_topidx_t num_trees = 5; const p4est_topidx_t num_ett = 2; @@ -369,11 +370,11 @@ p8est_connectivity_new_drop (void) 4, 4, 4, 4, 0, 4, }; const int8_t tree_to_face[5 * 6] = { - 0, 1, 2, 3, 4, 4, - 0,10, 2, 3, 4, 5, - 0, 1, 2, 3, 7, 1, - 0, 5, 2, 3, 4, 5, - 0, 1, 2, 3, 5, 5, + 0, 1, 2, 3, 4, 4, + 0, 10, 2, 3, 4, 5, + 0, 1, 2, 3, 7, 1, + 0, 5, 2, 3, 4, 5, + 0, 1, 2, 3, 5, 5, }; const p4est_topidx_t tree_to_edge[5 * 12] = { -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, @@ -382,7 +383,7 @@ p8est_connectivity_new_drop (void) -1, -1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, 1, -1, -1, -1, -1, -1, -1, -1, -1, }; - const p4est_topidx_t ett_offset[2 + 1] = { 0, 2, 4}; + const p4est_topidx_t ett_offset[2 + 1] = { 0, 2, 4 }; const p4est_topidx_t edge_to_tree[4] = { 0, 1, 3, 4 }; @@ -405,7 +406,9 @@ p8est_connectivity_new_drop (void) const int8_t corner_to_corner[3] = { 7, 4, 3 }; - return p4est_connectivity_new_copy (num_vertices, num_trees, +/* *INDENT-ON* */ + + return p4est_connectivity_new_copy (num_vertices, num_trees, num_ett, num_ctt, vertices, tree_to_vertex, tree_to_tree, tree_to_face, @@ -448,6 +451,7 @@ p8est_connectivity_new_twocubes (void) 0, 0, 2, 3, 4, 5, 1, 1, 2, 3, 4, 5, }; + return p4est_connectivity_new_copy (num_vertices, num_trees, 0, 0, vertices, tree_to_vertex, tree_to_tree, tree_to_face, diff --git a/src/p8est_connectivity.h b/src/p8est_connectivity.h index 9f732fce7..9d2553297 100644 --- a/src/p8est_connectivity.h +++ b/src/p8est_connectivity.h @@ -604,7 +604,7 @@ p8est_connectivity_t *p8est_connectivity_new_periodic (void); p8est_connectivity_t *p8est_connectivity_new_rotwrap (void); /** Create a connectivity structure for a five-trees geometry with a - * hole. The geometry is a 3D extrusion of the two drop example, and + * hole. The geometry is a 3D extrusion of the two drop example, and * covers [0, 3]*[0, 2]*[0, 3]. The additional dimension is Y. */ p8est_connectivity_t *p8est_connectivity_new_drop (void);