Skip to content

Commit

Permalink
test hanging-corners: replace TRUE/FALSE by 1/0
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbrandt committed Dec 15, 2023
1 parent 87892e6 commit 87103fa
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions test/test_mesh_corners3.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@
#include<p8est_extended.h>
#include<p8est_iterate.h>

#define FALSE 0
#define TRUE 1

static int
refine (p8est_t *p4est, p4est_topidx_t which_tree,
p8est_quadrant_t *quadrant)
{
int refine = TRUE;
int refine = 1;
if (quadrant->x == 0 && quadrant->y == 0 && quadrant->z == 0 &&
which_tree == 3) {
refine = FALSE;
refine = 0;
}
return refine;
}
Expand Down Expand Up @@ -78,7 +75,7 @@ main (int argc, char **argv)
p8est = p8est_new_ext (mpicomm, conn, 0, 1, 0, 0, NULL, NULL);

/* refine all quadrants to level 2 except quadrant in tree 3 touching 0,0,0 */
p8est_refine_ext (p8est, FALSE, 2, refine, NULL, NULL);
p8est_refine_ext (p8est, 0, 2, refine, NULL, NULL);

ghost = p8est_ghost_new (p8est, P8EST_CONNECT_FULL);

Expand Down

0 comments on commit 87103fa

Please sign in to comment.