Lines Matching refs:cids

2353   PetscInt          *cids         = NULL;  in DMPforestGetTransferSF_Point()  local
2378 PetscCall(PetscMalloc1(pEndF - pStartF, &cids)); in DMPforestGetTransferSF_Point()
2379 PetscCall(PetscArraycpy(cids, pforestC->pointSelfToAdaptCids, pEndF - pStartF)); in DMPforestGetTransferSF_Point()
2380 *childIds = cids; in DMPforestGetTransferSF_Point()
2392 PetscCall(PetscMalloc1(pEndF - pStartF, &cids)); in DMPforestGetTransferSF_Point()
2393 PetscCall(PetscArraycpy(cids, pforestF->pointAdaptToSelfCids, pEndF - pStartF)); in DMPforestGetTransferSF_Point()
2394 *childIds = cids; in DMPforestGetTransferSF_Point()
2521 PetscCall(PetscMalloc1(pEndF - pStartF, &cids)); in DMPforestGetTransferSF_Point()
2522 for (p = pStartF; p < pEndF; p++) cids[p - pStartF] = -2; in DMPforestGetTransferSF_Point()
2572 cids[p - pStartF] = -1; in DMPforestGetTransferSF_Point()
2593 cids[p - pStartF] = -1; in DMPforestGetTransferSF_Point()
2764 if (formCids) cids[p - pStartF] = -1; in DMPforestGetTransferSF_Point()
2771 if (formCids) cids[p - pStartF] = proposedCids[j]; in DMPforestGetTransferSF_Point()
2781 if (formCids) cids[parent - pStartF] = -1; in DMPforestGetTransferSF_Point()
2806 …if (formCids && rootTypeCopy[p - pStartF] == PETSC_INT_MAX) cids[p - pStartF] = -1; /* we have fou… in DMPforestGetTransferSF_Point()
2854 PetscCall(PetscSFReduceBegin(pointSF, MPIU_INT, cids, cids, MPI_MAX)); in DMPforestGetTransferSF_Point()
2855 PetscCall(PetscSFReduceEnd(pointSF, MPIU_INT, cids, cids, MPI_MAX)); in DMPforestGetTransferSF_Point()
2856 if (childIds) *childIds = cids; in DMPforestGetTransferSF_Point()
2865 pforestC->pointSelfToAdaptCids = cids; in DMPforestGetTransferSF_Point()
2868 PetscCall(PetscArraycpy(pforestC->pointSelfToAdaptCids, cids, pEndF - pStartF)); in DMPforestGetTransferSF_Point()
2874 pforestF->pointAdaptToSelfCids = cids; in DMPforestGetTransferSF_Point()
2877 PetscCall(PetscArraycpy(pforestF->pointAdaptToSelfCids, cids, pEndF - pStartF)); in DMPforestGetTransferSF_Point()
4436 PetscInt *cids; in DMCreateInterpolation_pforest() local
4441 PetscCall(DMPforestGetTransferSF_Internal(dmCoarse, dmFine, dofPerDim, &sf, PETSC_TRUE, &cids)); in DMCreateInterpolation_pforest()
4443 PetscCall(DMPlexComputeInterpolatorTree(plexC, plexF, sf, cids, *interpolation)); in DMCreateInterpolation_pforest()
4445 PetscCall(PetscFree(cids)); in DMCreateInterpolation_pforest()
4476 PetscInt *cids; in DMCreateInjection_pforest() local
4481 PetscCall(DMPforestGetTransferSF_Internal(dmCoarse, dmFine, dofPerDim, &sf, PETSC_TRUE, &cids)); in DMCreateInjection_pforest()
4483 PetscCall(DMPlexComputeInjectorTree(plexC, plexF, sf, cids, *injection)); in DMCreateInjection_pforest()
4485 PetscCall(PetscFree(cids)); in DMCreateInjection_pforest()