Skip to content

Commit

Permalink
p8est_connectivity_new_drop: white space
Browse files Browse the repository at this point in the history
  • Loading branch information
cburstedde committed Sep 7, 2023
1 parent 81bf9ea commit 0febb2c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
18 changes: 11 additions & 7 deletions src/p8est_connectivity.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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
};
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/p8est_connectivity.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0febb2c

Please sign in to comment.