Skip to content

Commit

Permalink
test hanging-corners: use mesh_new_params in test_mesh_corners
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbrandt committed Dec 13, 2023
1 parent ccadff6 commit eb0d4d3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/test_mesh_corners3.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@ int main(int argc, char **argv)

p8est_ghost_t* ghost = p8est_ghost_new(p8est, P8EST_CONNECT_FULL);

p8est_mesh_t* mesh = p8est_mesh_new(p8est, ghost, P8EST_CONNECT_FULL);
/* create mesh with edgehanging corner neighbor information */
p8est_mesh_params_t params;
p8est_mesh_params_init (&params);
params.btype = P8EST_CONNECT_FULL;
params.edgehanging_corners = 1;
p8est_mesh_t* mesh = p8est_mesh_new_params (p8est, ghost, &params);
P4EST_ASSERT(mesh->local_num_quadrants == 57);

// assuming that the coarse quadrent is zero with ordering
Expand Down

0 comments on commit eb0d4d3

Please sign in to comment.