Lines Matching refs:dms
5408 DM *dms, coarseDM; in DMSetFromOptions_Plex() local
5412 PetscCall(PetscMalloc1(refine, &dms)); in DMSetFromOptions_Plex()
5413 PetscCall(DMRefineHierarchy(dm, refine, dms)); in DMSetFromOptions_Plex()
5415 PetscCall(DMPlexSwap_Static(dm, dms[refine - 1])); in DMSetFromOptions_Plex()
5417 PetscCall(DMSetCoarseDM(dm, dms[0])); in DMSetFromOptions_Plex()
5420 PetscCall(DMSetCoarseDM(dm, dms[refine - 2])); in DMSetFromOptions_Plex()
5422 PetscCall(DMSetCoarseDM(dms[0], dms[refine - 1])); in DMSetFromOptions_Plex()
5423 PetscCall(DMPlexSetRegularRefinement(dms[0], PETSC_TRUE)); in DMSetFromOptions_Plex()
5425 PetscCall(DMSetCoarseDM(dms[refine - 1], coarseDM)); in DMSetFromOptions_Plex()
5429 PetscCall(DMSetFromOptions_NonRefinement_Plex(dms[r], PetscOptionsObject)); in DMSetFromOptions_Plex()
5430 PetscCall(DMDestroy(&dms[r])); in DMSetFromOptions_Plex()
5432 PetscCall(PetscFree(dms)); in DMSetFromOptions_Plex()
5454 DM *dms; in DMSetFromOptions_Plex() local
5456 PetscCall(PetscMalloc1(coarsen, &dms)); in DMSetFromOptions_Plex()
5457 PetscCall(DMCoarsenHierarchy(dm, coarsen, dms)); in DMSetFromOptions_Plex()
5460 PetscCall(DMSetFromOptions_NonRefinement_Plex(dms[r], PetscOptionsObject)); in DMSetFromOptions_Plex()
5461 PetscCall(DMDestroy(&dms[r])); in DMSetFromOptions_Plex()
5463 PetscCall(PetscFree(dms)); in DMSetFromOptions_Plex()