Home
last modified time | relevance | path

Searched refs:pforest (Results 1 – 1 of 1) sorted by relevance

/petsc/src/dm/impls/forest/p4est/
H A Dpforest.h358 static PetscErrorCode DMConvert_plex_pforest(DM dm, DMType newtype, DM *pforest) in DMConvert_plex_pforest() argument
372 PetscCall(DMCreate(comm, pforest)); in DMConvert_plex_pforest()
373 PetscCall(DMSetType(*pforest, DMPFOREST)); in DMConvert_plex_pforest()
374 PetscCall(DMForestSetBaseDM(*pforest, dm)); in DMConvert_plex_pforest()
376 PetscCall(DMSetApplicationContext(*pforest, ctx)); in DMConvert_plex_pforest()
377 PetscCall(DMCopyDisc(dm, *pforest)); in DMConvert_plex_pforest()
385 DM_Forest_pforest *pforest = (DM_Forest_pforest *)forest->data; in DMForestDestroy_pforest() local
389 if (pforest->lnodes) PetscCallP4est(p4est_lnodes_destroy, (pforest->lnodes)); in DMForestDestroy_pforest()
390 pforest->lnodes = NULL; in DMForestDestroy_pforest()
391 if (pforest->ghost) PetscCallP4est(p4est_ghost_destroy, (pforest->ghost)); in DMForestDestroy_pforest()
[all …]