Searched refs:mycolor (Results 1 – 7 of 7) sorted by relevance
| /petsc/src/vec/is/tests/ |
| H A D | ex5.c | 111 PetscMPIInt size, rank, mycolor; in main() local 122 mycolor = (PetscMPIInt)(rank >= 2); in main() 123 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, rank, &comm)); in main() 124 if (mycolor == 0) { in main() 208 mycolor = (PetscMPIInt)(rank >= 3); in main() 209 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, rank, &comm)); in main() 210 if (mycolor == 0) { in main()
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex5.c | 45 PetscMPIInt gsize, grank, mycolor; in main() local 70 mycolor = (PetscMPIInt)(grank > user.ntimes - i); in main() 72 mycolor = (PetscMPIInt)0; in main() 74 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &comm)); in main() 76 if (mycolor == 0) { in main()
|
| H A D | ex15.c | 162 PetscMPIInt gsize, grank, mycolor; in main() local 178 mycolor = grank == 0 ? 0 : 1; in main() 179 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &comm)); in main() 211 mycolor = (PetscMPIInt)(grank > user.ntimes - i); in main() 213 mycolor = (PetscMPIInt)0; in main() 215 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &comm)); in main() 217 if (mycolor == 0) { in main()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex21.c | 149 PetscMPIInt size, rank, mycolor; in main() local 165 mycolor = (PetscMPIInt)(rank >= 2); in main() 166 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, rank, &comm)); in main() 167 if (mycolor == 0) { in main() 325 mycolor = (PetscMPIInt)(rank >= 3); in main() 326 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, rank, &comm)); in main() 327 if (mycolor == 0) { in main()
|
| H A D | ex103.c | 356 PetscMPIInt gsize, grank, mycolor; in main() local 372 mycolor = grank == 0 ? 0 : 1; in main() 373 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &comm)); in main() 407 mycolor = (PetscMPIInt)(grank < (gsize - i) ? 0 : 1); in main() 409 mycolor = (PetscMPIInt)0; in main() 411 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &comm)); in main() 413 if (mycolor == 0) { in main()
|
| /petsc/src/vec/is/sf/tests/ |
| H A D | ex9.c | 9 PetscMPIInt nproc, grank, mycolor; in main() local 40 mycolor = grank % 3; in main() 41 PetscCallMPI(MPI_Comm_split(PETSC_COMM_WORLD, mycolor, grank, &subcomm)); in main() 68 if (mycolor == 0) { /* subcomm0 contains ranks 0, 3, 6, ... in PETSC_COMM_WORLD */ in main() 174 if (mycolor == 0) { in main() 261 } else if (mycolor == 1) { /* subcomm 1, containing ranks 1, 4, 7, ... in PETSC_COMM_WORLD */ in main() 351 } else if (mycolor == 2) { /* subcomm2 */ in main()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmplex.py | 535 mycolor = grank > self.NTIMES - i 537 mycolor = 0 539 comm = PETSc.Comm(comm=mpicomm.Split(color=mycolor, key=grank)) 540 if mycolor == 0:
|