| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 388 PetscMPIInt b[2], b2[2], csize, gsize; in PetscPartitionerMultistageSetStages() local 390 PetscCallMPI(MPI_Group_size(igroup, &gsize)); in PetscPartitionerMultistageSetStages() 391 b[0] = -gsize; in PetscPartitionerMultistageSetStages() 392 b[1] = +gsize; in PetscPartitionerMultistageSetStages() 397 PetscCall(PetscMalloc2(gsize, &ranks, (csize * gsize), &granks)); in PetscPartitionerMultistageSetStages() 398 for (PetscMPIInt i = 0; i < gsize; i++) granks[i] = i; in PetscPartitionerMultistageSetStages() 399 PetscCallMPI(MPI_Group_translate_ranks(igroup, gsize, granks, group, ranks)); in PetscPartitionerMultistageSetStages() 401 PetscCallMPI(MPI_Allgather(ranks, gsize, MPI_INT, granks, gsize, MPI_INT, comm)); in PetscPartitionerMultistageSetStages() 402 for (PetscMPIInt i = 0; i < gsize; i++) { in PetscPartitionerMultistageSetStages() 405 PetscMPIInt shft = j * gsize + i; in PetscPartitionerMultistageSetStages() [all …]
|
| /petsc/src/vec/vec/tests/ |
| H A D | ex56.c | 28 const size_t gsize = 10, lsize = 2; in main() local 54 clEnqueueNDRangeKernel(queue, knl, 1, NULL, &gsize, &lsize, 0, NULL, NULL); in main()
|
| /petsc/src/dm/impls/plex/tutorials/ |
| H A D | ex5.c | 45 PetscMPIInt gsize, grank, mycolor; in main() local 55 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &gsize)); in main()
|
| H A D | ex15.c | 162 PetscMPIInt gsize, grank, mycolor; in main() local 171 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &gsize)); in main()
|
| /petsc/src/binding/petsc4py/test/ |
| H A D | test_dmshell.py | 45 lsize, gsize = lvec.getSizes() 46 self.assertEqual(lsize, gsize) 58 lsize, gsize = lvec.getSizes() 59 self.assertEqual(lsize, gsize)
|
| H A D | test_is.py | 21 gsize = self.iset.getSize() 22 self.assertTrue(lsize <= gsize)
|
| H A D | test_vec.py | 115 lsize, gsize = self.vec.getSizes() 122 if not (gsize % bs or lsize % bs)
|
| /petsc/src/vec/is/sf/utils/ |
| H A D | sfutils.c | 165 PetscInt dof, cdof, off, gdof, gcdof, goff, gsize, d, c; in PetscSFSetGraphSection() local 175 gsize = gdof < 0 ? -(gdof + 1) - gcdof : gdof - gcdof; in PetscSFSetGraphSection() 176 if (gsize != dof - cdof) { in PetscSFSetGraphSection() 177 …gsize == dof, comm, PETSC_ERR_ARG_WRONG, "Global dof %" PetscInt_FMT " for point %" PetscInt_FMT "… in PetscSFSetGraphSection() 187 …= gsize, comm, PETSC_ERR_ARG_WRONG, "Point %" PetscInt_FMT ": Global dof %" PetscInt_FMT " != %" P… in PetscSFSetGraphSection() 189 for (d = 0; d < gsize; ++d, ++l) { in PetscSFSetGraphSection() 201 for (d = 0; d < gsize; ++d, ++l) { in PetscSFSetGraphSection()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex103.c | 356 PetscMPIInt gsize, grank, mycolor; in main() local 365 PetscCallMPI(MPI_Comm_size(PETSC_COMM_WORLD, &gsize)); in main() 407 mycolor = (PetscMPIInt)(grank < (gsize - i) ? 0 : 1); in main()
|
| /petsc/src/dm/interface/ |
| H A D | dm.c | 4579 PetscInt dof, cdof, off, gdof, gcdof, goff, gsize, d; in DMDefaultSectionCheckConsistency_Internal() local 4597 gsize = gdof < 0 ? -(gdof + 1) - gcdof : gdof - gcdof; in DMDefaultSectionCheckConsistency_Internal() 4598 for (d = 0; d < gsize; ++d) { in DMDefaultSectionCheckConsistency_Internal()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plex.c | 8966 PetscErrorCode DMPlexGetDepthStratumGlobalSize(DM dm, PetscInt depth, PetscInt *gsize) in DMPlexGetDepthStratumGlobalSize() argument 8980 …PetscCallMPI(MPIU_Allreduce(&lsize, gsize, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObject)dm))… in DMPlexGetDepthStratumGlobalSize() 9172 PetscInt pStart, pEnd, gsize; in DMPlexCreatePointNumbering() local 9175 PetscCall(DMPlexCreateNumbering_Plex(dm, pStart, pEnd, shift, &gsize, dm->sf, &nums[d])); in DMPlexCreatePointNumbering() 9176 shift += gsize; in DMPlexCreatePointNumbering()
|
| /petsc/src/mat/impls/is/ |
| H A D | matis.c | 2227 …appingView_Multi(ISLocalToGlobalMapping mapping, PetscInt lsize, PetscInt gsize, const PetscInt vb… in ISLocalToGlobalMappingView_Multi() argument 2235 tr[2] = gsize; in ISLocalToGlobalMappingView_Multi()
|