Skip to content

Commit

Permalink
feature-wrap-partition: remove set_store_adpated
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesbrandt committed Jul 9, 2024
1 parent 5b8a4e9 commit 6be235a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 48 deletions.
24 changes: 0 additions & 24 deletions src/p4est_wrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -596,30 +596,6 @@ p4est_wrap_set_partitioning (p4est_wrap_t *pp, int partition_for_coarsening)
pp->params.partition_for_coarsening = partition_for_coarsening;
}

void
p4est_wrap_set_store_adapted (p4est_wrap_t * pp, int store_adapted)
{
P4EST_ASSERT (pp != NULL);

if (pp->params.store_adapted == store_adapted) {
return; /* nothing to do */
}

if (store_adapted) {
P4EST_ASSERT (pp->newly_refined == NULL);
pp->newly_refined = sc_array_new (sizeof (p4est_locidx_t));
P4EST_ASSERT (pp->newly_coarsened == NULL);
pp->newly_coarsened = sc_array_new (sizeof (p4est_locidx_t));
}
else {
P4EST_ASSERT (pp->newly_refined != NULL);
sc_array_destroy_null (&pp->newly_refined);
P4EST_ASSERT (pp->newly_coarsened != NULL);
sc_array_destroy_null (&pp->newly_coarsened);
}
pp->params.store_adapted = store_adapted;
}

p4est_ghost_t *
p4est_wrap_get_ghost (p4est_wrap_t * pp)
{
Expand Down
12 changes: 0 additions & 12 deletions src/p4est_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -317,18 +317,6 @@ void p4est_wrap_set_coarsen_delay (p4est_wrap_t * pp,
void p4est_wrap_set_partitioning (p4est_wrap_t *pp,
int partition_for_coarsening);

/** Set a parameter that stores indices of newly adapted quadrants.
* If positive, the local quadrant indices of all quadrants refined or coarsened
* during the most recent call to \ref p4est_wrap_adapt (on entry the wrap's
* p4est has to be balanced) are stored in \a newly_refined and
* \a newly_coarsened.
* \param [in,out] pp A valid p4est_wrap structure.
* \param [in] store_adapted Boolean: If true, the indices of newly adapted
* quadrants are stored in future adaptations.
*/
void p4est_wrap_set_store_adapted (p4est_wrap_t *pp,
int store_adapted);

/** Return the appropriate ghost layer.
* This function is necessary since two versions may exist simultaneously
* after refinement and before partition/complete.
Expand Down
12 changes: 0 additions & 12 deletions src/p8est_wrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,18 +302,6 @@ void p8est_wrap_set_coarsen_delay (p8est_wrap_t * pp,
void p8est_wrap_set_partitioning (p8est_wrap_t *pp,
int partition_for_coarsening);

/** Set a parameter that stores indices of newly adapted quadrants.
* If positive, the local quadrant indices of all quadrants refined or coarsened
* during the most recent call to \ref p8est_wrap_adapt (on entry the wrap's
* p8est has to be balanced) are stored in \a newly_refined and
* \a newly_coarsened.
* \param [in,out] pp A valid p4est_wrap structure.
* \param [in] store_adapted Boolean: If true, the indices of newly adapted
* quadrants are stored in future adaptations.
*/
void p8est_wrap_set_store_adapted (p8est_wrap_t *pp,
int store_adapted);

/** Return the appropriate ghost layer.
* This function is necessary since two versions may exist simultaneously
* after refinement and before partition/complete.
Expand Down

0 comments on commit 6be235a

Please sign in to comment.