Skip to content

Commit

Permalink
p4est_connectivity: disentangle 3D include
Browse files Browse the repository at this point in the history
Reinstate the usual way of including p4est_to_p8est and in the next line
the corresponding p4est .c file.  We needed to add a static prototype.
  • Loading branch information
cburstedde committed Jan 30, 2025
1 parent ddbc24d commit 537bfb5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
15 changes: 13 additions & 2 deletions src/p4est_connectivity.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,16 @@ const int p4est_child_corner_faces[4][4] =
{ -1, 1, 3, -1 }};
/* *INDENT-ON* */

#endif /* !P4_TO_P8 */
#else

static int
p8est_find_edge_transform_internal
(p8est_connectivity_t *conn,
p4est_topidx_t itree, int iedge, p8est_edge_info_t *ei,
const p4est_topidx_t *ett, const int8_t *ete,
p4est_topidx_t edge_trees);

#endif /* P4_TO_P8 */

int
p4est_connectivity_face_neighbor_face_corner (int fc, int f, int nf, int o)
Expand Down Expand Up @@ -4373,6 +4382,7 @@ p4est_connectivity_join_corners (p4est_connectivity_t * conn,
}

#ifdef P4_TO_P8

static void
p8est_connectivity_join_edges (p8est_connectivity_t * conn,
p4est_topidx_t tree_left,
Expand Down Expand Up @@ -4482,7 +4492,8 @@ p8est_connectivity_join_edges (p8est_connectivity_t * conn,

P4EST_ASSERT (p4est_connectivity_is_valid (conn));
}
#endif

#endif /* P4_TO_P8 */

void
p4est_connectivity_join_faces (p4est_connectivity_t * conn,
Expand Down
5 changes: 1 addition & 4 deletions src/p8est_connectivity.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
*/

#include <p4est_to_p8est.h>
#include <p8est_connectivity.h>
#include <p8est.h>
#include "p4est_connectivity.c"

/* *INDENT-OFF* */
const int p8est_volume_point = 13;
Expand Down Expand Up @@ -1581,8 +1580,6 @@ p8est_find_edge_transform_internal (p4est_connectivity_t * conn,
return distinct;
}

#include "p4est_connectivity.c"

int
p8est_connectivity_face_neighbor_face_edge (int fe, int f, int nf, int o)
{
Expand Down

0 comments on commit 537bfb5

Please sign in to comment.