Skip to content

Commit

Permalink
p4est_connectivity: debug-only variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cburstedde committed Feb 7, 2025
1 parent 8e9d374 commit e2d714c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/p4est_connectivity.c
Original file line number Diff line number Diff line change
Expand Up @@ -5343,7 +5343,9 @@ p4est_connectivity_coordinates_canonicalize
int contacts, face, corner;
int ftransform[P4EST_FTRANSFORM];
size_t ctreez;
#ifdef P4EST_ENABLE_DEBUG
p4est_topidx_t num_trees;
#endif
p4est_topidx_t ntreeid, lowest;
p4est_qcoord_t ncoords[P4EST_DIM];
#ifdef P4_TO_P8
Expand All @@ -5363,8 +5365,10 @@ p4est_connectivity_coordinates_canonicalize
P4EST_ASSERT (treeid_out != NULL);
P4EST_ASSERT (coords_out != NULL);

#ifdef P4EST_ENABLE_DEBUG
/* access number of trees in the mesh */
num_trees = conn->num_trees;
#endif

/* verify input data */
P4EST_ASSERT (0 <= treeid && treeid < num_trees);
Expand Down

0 comments on commit e2d714c

Please sign in to comment.