static void test_reduce (p4est_connectivity_t * conn, const char *which) { SC_GLOBAL_INFOF ("Testing standard connectivity %s\n", which); SC_CHECK_ABORTF (p4est_connectivity_is_valid (conn), "Invalid connectivity %s before reduce", which); p4est_connectivity_reduce (conn); SC_CHECK_ABORTF (p4est_connectivity_is_valid (conn), "Invalid connectivity %s after reduce", which); SC_GLOBAL_INFOF ("Testing completion for reduced connectivity %s\n", which); p4est_connectivity_complete (conn); SC_CHECK_ABORTF (p4est_connectivity_is_valid (conn), "Invalid connectivity %s after completion", which); p4est_connectivity_destroy (conn); }
static void test_complete (p4est_connectivity_t * conn, const char *which, int test_p4est) { SC_GLOBAL_INFOF ("Testing standard connectivity %s\n", which); SC_CHECK_ABORTF (p4est_connectivity_is_valid (conn), "Invalid connectivity %s before completion", which); if (0 && test_p4est) { test_the_p4est (conn, 3); } SC_GLOBAL_INFOF ("Testing completion for connectivity %s\n", which); p4est_connectivity_complete (conn); SC_CHECK_ABORTF (p4est_connectivity_is_valid (conn), "Invalid connectivity %s after completion", which); if (test_p4est) { test_the_p4est (conn, 3); } p4est_connectivity_destroy (conn); }