Lines Matching refs:dmc

83 static PetscErrorCode private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide(DM dm, DM dmc, PetscInt…  in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()  argument
101 PetscCall(DMGetDimension(dmc, &dim)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
103 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
104 PetscCall(DMPlexGetConeSize(dmc, ps, &nfaces)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
107 PetscCall(private_PetscFECreateDefault_scalar_pk1(dmc, dim, is_simplex, 0, &fe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
121 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
124 PetscCall(DMSwarmGetCellDMActive(dmc, &celldm)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
126 …PetscCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single c… in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
133 PetscCall(DMGetCoordinatesLocal(dmc, &coorlocal)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
134 PetscCall(DMGetCoordinateSection(dmc, &coordSection)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
138 PetscCall(DMPlexVecGetClosure(dmc, coordSection, coorlocal, ps + e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
148 PetscCall(DMPlexVecRestoreClosure(dmc, coordSection, coorlocal, ps + e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX_SubDivide()
157 static PetscErrorCode private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular(DM dm, DM dmc, PetscInt… in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular() argument
173 PetscCall(DMGetDimension(dmc, &dim)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
176 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
177 PetscCall(DMPlexGetConeSize(dmc, ps, &nfaces)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
211 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
214 PetscCall(DMSwarmGetCellDMActive(dmc, &celldm)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
216 …PetscCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single c… in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
223 PetscCall(DMGetCoordinatesLocal(dmc, &coorlocal)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
224 PetscCall(DMGetCoordinateSection(dmc, &coordSection)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
228 PetscCall(DMPlexVecGetClosure(dmc, coordSection, coorlocal, e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
238 PetscCall(DMPlexVecRestoreClosure(dmc, coordSection, coorlocal, e, NULL, &elcoor)); in private_DMSwarmInsertPointsUsingCellDM_PLEX2D_Regular()
281 PetscErrorCode private_DMSwarmSetPointCoordinatesCellwise_PLEX(DM dm, DM dmc, PetscInt npoints, Pet… in private_DMSwarmSetPointCoordinatesCellwise_PLEX() argument
291 PetscCall(DMGetDimension(dmc, &dim)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
295 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
296 PetscCall(DMPlexGetConeSize(dmc, ps, &nfaces)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
326 PetscCall(DMPlexGetHeightStratum(dmc, 0, &ps, &pe)); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
331 …PetscCheck(Nfc == 1, PetscObjectComm((PetscObject)dmc), PETSC_ERR_SUP, "We only support a single c… in private_DMSwarmSetPointCoordinatesCellwise_PLEX()
340 … PetscCall(DMPlexReferenceToCoordinates(dmc, e + ps, npoints, xi, &swarm_coor[npoints * dim * e])); in private_DMSwarmSetPointCoordinatesCellwise_PLEX()