Home
last modified time | relevance | path

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

/petsc/src/ksp/pc/impls/is/nn/ !
H A Dnn.c210 PetscMPIInt n_neigh; in PCNNCreateCoarseMatrix() local
214 PetscCall(PetscMPIIntCast(pcis->n_neigh, &n_neigh)); in PCNNCreateCoarseMatrix()
216 PetscCall(PetscMalloc1(n_neigh * n_neigh + 1, &mat)); in PCNNCreateCoarseMatrix()
223 PetscCall(PetscMalloc((n_neigh + 1) * sizeof(PetscScalar *), &pcnn->DZ_IN)); in PCNNCreateCoarseMatrix()
225 PetscCall(PetscMalloc((n_neigh + 1) * sizeof(PetscScalar *), &DZ_OUT)); in PCNNCreateCoarseMatrix()
226 for (i = 0; i < n_neigh; i++) size_of_Z += n_shared[i]; in PCNNCreateCoarseMatrix()
230 for (i = 1; i < n_neigh; i++) { in PCNNCreateCoarseMatrix()
238 for (i = 1; i < n_neigh; i++) { in PCNNCreateCoarseMatrix()
248 PetscCall(PetscMalloc2(n_neigh + 1, &send_request, n_neigh + 1, &recv_request)); in PCNNCreateCoarseMatrix()
249 for (i = 1; i < n_neigh; i++) { in PCNNCreateCoarseMatrix()
[all …]
/petsc/include/petsc/private/ !
H A Dpcisimpl.h47 …PetscInt n_neigh; /* should use PetscMPIInt number of neighbours this subdomain/MPI… member
/petsc/src/ksp/pc/impls/bddc/ !
H A Dbddcfetidp.c327 PetscCall(PetscMalloc1(pcis->n_neigh, &ptrs_buffer)); in PCBDDCSetupFETIDPMatContext()
328 PetscCall(PetscMalloc1(PetscMax(pcis->n_neigh - 1, 0), &send_reqs)); in PCBDDCSetupFETIDPMatContext()
329 PetscCall(PetscMalloc1(PetscMax(pcis->n_neigh - 1, 0), &recv_reqs)); in PCBDDCSetupFETIDPMatContext()
331 if (pcis->n_neigh > 0) ptrs_buffer[0] = 0; in PCBDDCSetupFETIDPMatContext()
332 for (i = 1; i < pcis->n_neigh; i++) { in PCBDDCSetupFETIDPMatContext()
349 for (i = 1; i < pcis->n_neigh; i++) { in PCBDDCSetupFETIDPMatContext()
357 PetscCall(PetscMPIIntCast(pcis->n_neigh - 1, &nreqs)); in PCBDDCSetupFETIDPMatContext()
358 if (pcis->n_neigh > 0) PetscCallMPI(MPI_Waitall(nreqs, recv_reqs, MPI_STATUSES_IGNORE)); in PCBDDCSetupFETIDPMatContext()
360 for (i = 1; i < pcis->n_neigh; i++) { in PCBDDCSetupFETIDPMatContext()
368 if (pcis->n_neigh > 0) PetscCallMPI(MPI_Waitall(nreqs, send_reqs, MPI_STATUSES_IGNORE)); in PCBDDCSetupFETIDPMatContext()
[all …]
H A Dbddcgraph.c300 PetscInt n_neigh, *neigh, *n_shared, **shared; in PCBDDCGraphComputeConnectedComponents() local
304 PetscCall(ISLocalToGlobalMappingGetInfo(graph->l2gmap, &n_neigh, &neigh, &n_shared, &shared)); in PCBDDCGraphComputeConnectedComponents()
305 for (ns = 1, maxc = 0; ns < n_neigh; ns++) maxc = PetscMax(maxc, n_shared[ns]); in PCBDDCGraphComputeConnectedComponents()
309 for (ns = 1; ns < n_neigh; ns++) { /* first proc is self */ in PCBDDCGraphComputeConnectedComponents()
426 … PetscCall(ISLocalToGlobalMappingRestoreInfo(graph->l2gmap, &n_neigh, &neigh, &n_shared, &shared)); in PCBDDCGraphComputeConnectedComponents()
H A Dbddc.c2029 pcis->n_neigh = -1; in PCReset_BDDC()
/petsc/src/ksp/pc/impls/is/ !
H A Dpcis.c164 …PetscCall(ISLocalToGlobalMappingGetInfo(pcis->mapping, &pcis->n_neigh, &pcis->neigh, &pcis->n_shar… in PCISSetUp()
451 …if (pcis->n_neigh > -1) PetscCall(ISLocalToGlobalMappingRestoreInfo(pcis->mapping, &pcis->n_neigh,… in PCISReset()
484 pcis->n_neigh = -1; in PCISInitialize()
/petsc/src/ksp/ksp/impls/fetidp/ !
H A Dfetidp.c592 PetscInt i, j, n_neigh, *neigh, *n_shared, **shared, *count; in KSPFETIDPSetUpOperators() local
603 PetscCall(ISLocalToGlobalMappingGetInfo(l2g, &n_neigh, &neigh, &n_shared, &shared)); in KSPFETIDPSetUpOperators()
604 for (i = 1; i < n_neigh; i++) in KSPFETIDPSetUpOperators()
608 PetscCall(ISLocalToGlobalMappingRestoreInfo(l2g, &n_neigh, &neigh, &n_shared, &shared)); in KSPFETIDPSetUpOperators()