Home
last modified time | relevance | path

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

/petsc/src/sys/tests/
H A Dex57.c7 MPI_Comm comms[10], comm; in main() local
15 for (i = 0; i < 10; i++) PetscCall(PetscCommGetComm(comm, &comms[i])); in main()
16 for (i = 0; i < 5; i++) PetscCall(PetscCommRestoreComm(comm, &comms[i])); in main()
17 for (i = 0; i < 5; i++) PetscCall(PetscCommGetComm(comm, &comms[i])); in main()
18 for (i = 0; i < 10; i++) PetscCall(PetscCommRestoreComm(comm, &comms[i])); in main()
/petsc/src/sys/objects/
H A Dtagm.c123 if (counter->comms) { in PetscCommGetComm()
124 struct PetscCommStash *pcomms = counter->comms; in PetscCommGetComm()
127 counter->comms = pcomms->next; in PetscCommGetComm()
164 pcomms = counter->comms; in PetscCommRestoreComm()
169 counter->comms = ncomm; in PetscCommRestoreComm()
H A Dpinit.c378 struct PetscCommStash *comms = counter->comms, *pcomm; in Petsc_Counter_Attr_DeleteFn() local
383 while (comms) { in Petsc_Counter_Attr_DeleteFn()
384 PetscCallMPIReturnMPI(MPI_Comm_free(&comms->comm)); in Petsc_Counter_Attr_DeleteFn()
385 pcomm = comms; in Petsc_Counter_Attr_DeleteFn()
386 comms = comms->next; in Petsc_Counter_Attr_DeleteFn()
/petsc/src/ksp/ksp/tutorials/
H A Dex73.c774 MPI_Comm *comms; in test_hierarchy() local
778 PetscCall(HierarchyCreate(&nd, &nref, &comms, &dms)); in test_hierarchy()
805 if (comms[k] != MPI_COMM_NULL) PetscCall(PetscCommDestroy(&comms[k])); in test_hierarchy()
807 PetscCall(PetscFree(comms)); in test_hierarchy()
858 MPI_Comm *comms = NULL; in test_mg() local
862 PetscCall(HierarchyCreate(&nd, &nref, &comms, &dms)); in test_mg()
909 if (comms[k] != MPI_COMM_NULL) PetscCall(PetscCommDestroy(&comms[k])); in test_mg()
911 PetscCall(PetscFree(comms)); in test_mg()
/petsc/src/vec/is/sf/impls/basic/neighbor/
H A Dsfneighbor.c22 …MPI_Comm comms[2]; /* Communicators with distributed topology in both directio… member
66 MPI_Comm comm, *mycomm = &dat->comms[direction]; in PetscSFGetDistComm_Neighbor()
82 *distcomm = dat->comms[direction]; in PetscSFGetDistComm_Neighbor()
260 PetscCallMPI(MPI_Comm_free(&dat->comms[i])); in PetscSFReset_Neighbor()
/petsc/src/snes/impls/fas/
H A Dfasfunc.c74 PetscErrorCode SNESFASSetLevels(SNES snes, PetscInt levels, MPI_Comm *comms) in SNESFASSetLevels() argument
88 if (!comms) PetscFunctionReturn(PETSC_SUCCESS); in SNESFASSetLevels()
101 if (comms) comm = comms[i]; in SNESFASSetLevels()
/petsc/src/ksp/pc/impls/mg/
H A Dmg.c339 PetscErrorCode PCMGSetLevels_MG(PC pc, PetscInt levels, MPI_Comm *comms) in PCMGSetLevels_MG() argument
391 if (comms) comm = comms[i]; in PCMGSetLevels_MG()
498 PetscErrorCode PCMGSetLevels(PC pc, PetscInt levels, MPI_Comm *comms) in PCMGSetLevels() argument
502 if (comms) PetscAssertPointer(comms, 3); in PCMGSetLevels()
503 PetscTryMethod(pc, "PCMGSetLevels_C", (PC, PetscInt, MPI_Comm *), (pc, levels, comms)); in PCMGSetLevels()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DSNES.pyx545 def setFASLevels(self, levels: int, comms: Sequence[Comm] | None = None) -> None:
554 comms
566 if comms is not None:
567 if clevels != <PetscInt>len(comms):
571 for i, comm in enumerate(comms):
/petsc/include/petsc/private/
H A Dpetscimpl.h1459 …struct PetscCommStash *comms; /* communicators available for PETSc to pass off to other packag… member
/petsc/doc/manual/
H A Dksp.md1791 PCMGSetLevels(pc,PetscInt levels,MPI_Comm *comms);