| /petsc/src/vec/is/sf/tests/ |
| H A D | ex7.c | 7 PetscMPIInt nproc, rank; in main() local 15 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &nproc)); in main() 17 …PetscCheck(nproc == 2, PETSC_COMM_WORLD, PETSC_ERR_WRONG_MPI_SIZE, "This test can only run on two … in main()
|
| H A D | ex6.c | 12 PetscMPIInt nproc, rank; in main() local 19 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &nproc)); in main() 22 …PetscCheck(nproc == 2, PETSC_COMM_WORLD, PETSC_ERR_WRONG_MPI_SIZE, "This test must run with exactl… in main()
|
| H A D | ex14.c | 9 PetscMPIInt nproc, rank; in main() local 23 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &nproc)); in main() 48 ix[1] = (rank != nproc - 1) ? high : 0; in main() 108 ix[1] = (rank != nproc - 1) ? high / bs : 0; in main()
|
| H A D | ex15.c | 15 PetscMPIInt nproc, rank; in main() local 23 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &nproc)); in main() 26 …PetscCheck(nproc == 2, PETSC_COMM_WORLD, PETSC_ERR_WRONG_MPI_SIZE, "This test must run with exactl… in main()
|
| H A D | ex9.c | 9 PetscMPIInt nproc, grank, mycolor; in main() local 25 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &nproc)); in main() 28 …PetscCheck(nproc >= 2, PETSC_COMM_WORLD, PETSC_ERR_ARG_SIZ, "This test must have at least two proc… in main()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexorient.c | 622 PetscInt proc, nproc, seen, flippedA, flippedB, mismatch, numNeighbors, n; in DMPlexOrient() local 629 nproc = neighbors[n]; in DMPlexOrient() 631 seen = PetscBTLookup(seenProcs, nproc); in DMPlexOrient() 632 flippedB = PetscBTLookup(flippedProcs, nproc) ? 1 : 0; in DMPlexOrient() 635 … %" PetscInt_FMT " and %" PetscInt_FMT " do not match: Fault mesh is non-orientable", proc, nproc); in DMPlexOrient() 637 PetscCall(PetscBTSet(flippedProcs, nproc)); in DMPlexOrient() 640 procFIFO[pBottom++] = nproc; in DMPlexOrient() 641 PetscCall(PetscBTSet(seenProcs, nproc)); in DMPlexOrient() 999 PetscInt proc, nproc, seen, flippedA, flippedB, mismatch, numNeighbors; in DMPlexOrientCells_Internal() local 1006 nproc = neighbors[n]; in DMPlexOrientCells_Internal() [all …]
|
| /petsc/src/vec/is/utils/ |
| H A D | isltog.c | 1102 PetscErrorCode ISLocalToGlobalMappingGetBlockInfo(ISLocalToGlobalMapping mapping, PetscInt *nproc, … in ISLocalToGlobalMappingGetBlockInfo() argument 1107 if (nproc) *nproc = mapping->info_nproc; in ISLocalToGlobalMappingGetBlockInfo() 1403 …ToGlobalMappingRestoreBlockInfo(ISLocalToGlobalMapping mapping, PetscInt *nproc, PetscInt *procs[]… in ISLocalToGlobalMappingRestoreBlockInfo() argument 1407 if (nproc) *nproc = 0; in ISLocalToGlobalMappingRestoreBlockInfo() 1441 PetscErrorCode ISLocalToGlobalMappingGetInfo(ISLocalToGlobalMapping mapping, PetscInt *nproc, Petsc… in ISLocalToGlobalMappingGetInfo() argument 1467 if (nproc) *nproc = n; in ISLocalToGlobalMappingGetInfo() 1489 PetscErrorCode ISLocalToGlobalMappingRestoreInfo(ISLocalToGlobalMapping mapping, PetscInt *nproc, P… in ISLocalToGlobalMappingRestoreInfo() argument 1497 for (PetscInt i = 0; i < *nproc; i++) PetscCall(PetscFree((*indices)[i])); in ISLocalToGlobalMappingRestoreInfo()
|
| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | IS.pyx | 1427 cdef PetscInt i, nproc = 0, *procs = NULL, 1431 self.lgm, &nproc, &procs, &numprocs, &indices)) 1433 for i from 0 <= i < nproc: 1437 self.lgm, &nproc, &procs, &numprocs, &indices) 1456 cdef PetscInt i, nproc = 0, *procs = NULL, 1460 self.lgm, &nproc, &procs, &numprocs, &indices)) 1462 for i from 0 <= i < nproc: 1466 self.lgm, &nproc, &procs, &numprocs, &indices)
|
| /petsc/src/mat/impls/scalapack/ |
| H A D | matscalapack.c | 947 PetscInt i, n, nb, isrc, nproc, iproc, *idx; in MatGetOwnershipIS_ScaLAPACK() local 954 nproc = a->grid->nprow; in MatGetOwnershipIS_ScaLAPACK() 957 …for (i = 0; i < n; i++) idx[i] = nproc * nb * (i / nb) + i % nb + ((nproc + iproc - isrc) % nproc)… in MatGetOwnershipIS_ScaLAPACK() 964 nproc = a->grid->npcol; in MatGetOwnershipIS_ScaLAPACK() 967 …for (i = 0; i < n; i++) idx[i] = nproc * nb * (i / nb) + i % nb + ((nproc + iproc - isrc) % nproc)… in MatGetOwnershipIS_ScaLAPACK()
|