| /petsc/src/binding/petsc4py/src/petsc4py/PETSc/ |
| H A D | Error.pyx | 26 cdef int csize=1, crank=0 28 MPI_Comm_size(PETSC_COMM_WORLD, &csize) 30 width, rank = len(str(csize-1)), crank
|
| H A D | DMLabel.pyx | 362 cdef PetscInt csize = 0 363 CHKERR(DMLabelGetStratumSize(self.dmlabel, cstratum, &csize)) 364 return toInt(csize)
|
| H A D | DMPlex.pyx | 528 cdef PetscInt csize = 0 529 CHKERR(DMPlexGetConeSize(self.dm, cp, &csize)) 530 return toInt(csize) 554 cdef PetscInt csize = asInt(size) 555 CHKERR(DMPlexSetConeSize(self.dm, cp, csize)) 1242 cdef PetscInt cp = asInt(p), csize = 0 1244 CHKERR(DMPlexVecGetClosure(self.dm, sec.sec, vec.vec, cp, &csize, &cvals)) 1246 closure = array_s(csize, cvals) 1248 CHKERR(DMPlexVecRestoreClosure(self.dm, sec.sec, vec.vec, cp, &csize, &cvals)) 1272 cdef PetscInt cp = asInt(point), csize = 0 [all …]
|
| H A D | IS.pyx | 231 cdef PetscInt csize = asInt(size) 235 CHKERR(ISCreateStride(ccomm, csize, cfirst, cstep, &newiset)) 923 cdef PetscInt csize = asInt(size) 926 CHKERR(ISStrideSetStride(self.iset, csize, cfirst, cstep))
|
| H A D | petscmat.pxi | 740 cdef object rsize, csize 742 rsize , csize = size 744 rsize = csize = size 753 Sys_Sizes(csize, cbsize, c, n, N)
|
| /petsc/src/mat/impls/lrc/ |
| H A D | lrc.c | 236 PetscMPIInt size, csize; in MatLRCSetMats() local 239 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)c), &csize)); in MatLRCSetMats() 242 …csize == 1 || csize == size, PetscObjectComm((PetscObject)c), PETSC_ERR_ARG_INCOMP, "U and c must … in MatLRCSetMats() 258 PetscMPIInt size, csize = 0; in MatSetUp_LRC() local 270 if (c) PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)c), &csize)); in MatSetUp_LRC() 274 if (Na->c && csize != 1) { /* scatter parallel vector to sequential */ in MatSetUp_LRC()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexglvis.c | 252 PetscInt depth, csize, pdepth, dim; in DMPlexGetPointMFEMCellID_Internal() local 257 PetscCall(DMPlexGetConeSize(dm, p, &csize)); in DMPlexGetPointMFEMCellID_Internal() 266 …PetscCheck(csize <= 8, PETSC_COMM_SELF, PETSC_ERR_SUP, "Found cone size %" PetscInt_FMT " for poin… in DMPlexGetPointMFEMCellID_Internal() 268 *cid = mfem_table_cid_unint[dim][csize]; in DMPlexGetPointMFEMCellID_Internal() 270 …PetscCheck(csize <= 6, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cone size %" PetscInt_FMT " for point %" P… in DMPlexGetPointMFEMCellID_Internal() 271 …= 3, PETSC_COMM_SELF, PETSC_ERR_SUP, "Depth %" PetscInt_FMT " for point %" PetscInt_FMT, csize, p); in DMPlexGetPointMFEMCellID_Internal() 272 *cid = mfem_table_cid[pdepth][csize]; in DMPlexGetPointMFEMCellID_Internal() 697 PetscInt csize, v, d; in DMPlexView_GLVis_ASCII() local 701 PetscCall(DMPlexVecGetClosure(dm, coordSection, coordinates, p, &csize, &vals)); in DMPlexView_GLVis_ASCII() 702 …csize == vpc * sdim || csize == vpc * sdim * 2, PETSC_COMM_SELF, PETSC_ERR_SUP, "Unsupported closu… in DMPlexView_GLVis_ASCII() [all …]
|
| H A D | plex.c | 6343 …pth1_Static(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt *csize, PetscScalar *valu… in DMPlexVecGetClosure_Depth1_Static() argument 6371 if (csize) *csize = size; in DMPlexVecGetClosure_Depth1_Static() 6409 if (csize) *csize = size; in DMPlexVecGetClosure_Depth1_Static() 6412 …eck(size <= *csize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Size of input array %" PetscInt_FM… in DMPlexVecGetClosure_Depth1_Static() 6413 *csize = size; in DMPlexVecGetClosure_Depth1_Static() 6610 …ion, PetscBool useClPerm, Vec v, PetscInt point, PetscInt ornt, PetscInt *csize, PetscScalar *valu… in DMPlexVecGetOrientedClosure() argument 6626 PetscCall(DMPlexVecGetClosure_Depth1_Static(dm, section, v, point, csize, values)); in DMPlexVecGetOrientedClosure() 6643 …csize >= asize, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Provided array size %" PetscInt_FMT " … in DMPlexVecGetOrientedClosure() 6654 if (csize) *csize = asize; in DMPlexVecGetOrientedClosure() 6720 …cGetClosure(DM dm, PetscSection section, Vec v, PetscInt point, PetscInt *csize, PetscScalar *valu… in DMPlexVecGetClosure() argument [all …]
|
| H A D | plexfluent.c | 845 PetscInt *cones, csize, foffset = 0; in DMPlexCreateFluent() local 849 PetscCall(PetscSectionGetConstrainedStorageSize(s, &csize)); in DMPlexCreateFluent() 850 for (PetscInt c = 0; c < csize; ++c) cones[c] = -1; in DMPlexCreateFluent()
|
| H A D | plexsfc.c | 222 const PetscInt csize = PetscPowInt(2, dim - 1); in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private() local 243 ZCode minz = donor_verts[i * csize]; in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private() 245 for (PetscInt j = 1; j < csize; j++) minz = PetscMin(minz, donor_verts[i * csize + j]); in DMPlexCreateBoxMesh_Tensor_SFC_Periodicity_Private()
|
| H A D | plexinterpolate.c | 687 PetscInt *cones, csize; in DMPlexInterpolateFaces_Internal() local 691 PetscCall(PetscSectionGetStorageSize(cs, &csize)); in DMPlexInterpolateFaces_Internal() 692 for (PetscInt c = 0; c < csize; ++c) cones[c] = -1; in DMPlexInterpolateFaces_Internal()
|
| /petsc/src/dm/impls/plex/tests/ |
| H A D | ex35.c | 39 PetscInt csize; in EstimateMemory() local 41 PetscCall(DMPlexGetConeSize(dm, p, &csize)); in EstimateMemory() 42 coneMem += csize; in EstimateMemory()
|
| /petsc/src/dm/impls/da/ |
| H A D | grvtk.c | 60 PetscInt csize; in DMDAVTKWriteAll_VTS() local 61 PetscCall(VecGetSize(Coords, &csize)); in DMDAVTKWriteAll_VTS() 62 …PetscCheck(csize % (mx * my * mz) == 0, PETSC_COMM_SELF, PETSC_ERR_PLIB, "Coordinate vector size m… in DMDAVTKWriteAll_VTS() 63 cdim = csize / (mx * my * mz); in DMDAVTKWriteAll_VTS()
|
| /petsc/src/snes/tutorials/ |
| H A D | ex77.c | 268 PetscInt csize; in CreateMesh() local 291 PetscCall(DMPlexVecGetClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in CreateMesh() 294 const PetscInt Nv = csize / dim; in CreateMesh() 302 PetscCall(DMPlexVecRestoreClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in CreateMesh()
|
| H A D | ex56.c | 252 PetscInt csize; in main() local 267 PetscCall(DMPlexVecGetClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in main() 268 Nv = csize / dim; /* Calculate mean coordinate vector */ in main() 279 PetscCall(DMPlexVecRestoreClosure(cdm, cs, coordinates, faces[f], &csize, &coords)); in main()
|
| /petsc/src/mat/impls/elemental/ |
| H A D | matelem.cxx | 1096 PetscMPIInt rsize, csize; in MatSetUp_Elemental() local 1120 PetscCallMPI(MPI_Comm_size(A->cmap->comm, &csize)); in MatSetUp_Elemental() 1121 …PetscCheck(csize == rsize, PetscObjectComm((PetscObject)A), PETSC_ERR_ARG_INCOMP, "Cannot use row … in MatSetUp_Elemental() 1125 a->mr[1] = A->cmap->N % csize; in MatSetUp_Elemental() 1126 if (!a->mr[1]) a->mr[1] = csize; in MatSetUp_Elemental() 1128 a->m[1] = A->cmap->N / csize + (a->mr[1] != csize); in MatSetUp_Elemental()
|
| /petsc/src/dm/partitioner/impls/multistage/ |
| H A D | mspart.c | 388 PetscMPIInt b[2], b2[2], csize, gsize; in PetscPartitionerMultistageSetStages() local 396 PetscCallMPI(MPI_Group_size(group, &csize)); in PetscPartitionerMultistageSetStages() 397 PetscCall(PetscMalloc2(gsize, &ranks, (csize * gsize), &granks)); in PetscPartitionerMultistageSetStages() 404 for (PetscMPIInt j = 0; j < csize; j++) { in PetscPartitionerMultistageSetStages()
|
| /petsc/src/dm/impls/plex/transform/impls/extrude/ |
| H A D | plextrcohesive.c | 935 PetscInt csize; in OrderCohesiveSupport_Private() local 939 PetscCall(DMPlexGetConeSize(dm, p, &csize)); in OrderCohesiveSupport_Private() 940 …PetscCheck(csize > 2, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Cone size for cohesive cell should be… in OrderCohesiveSupport_Private()
|
| /petsc/doc/changes/ |
| H A D | 31.md | 54 - Now takes a parallel IS for the columns, the csize argument has
|
| /petsc/src/mat/impls/aij/seq/mkl_pardiso/ |
| H A D | mkl_pardiso.c | 293 PetscMPIInt csize; in MatFactorSetSchurIS_MKL_PARDISO() local 297 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)F), &csize)); in MatFactorSetSchurIS_MKL_PARDISO() 298 …PetscCheck(csize <= 1, PETSC_COMM_SELF, PETSC_ERR_SUP, "MKL PARDISO parallel Schur complements not… in MatFactorSetSchurIS_MKL_PARDISO()
|
| /petsc/src/mat/impls/htool/ |
| H A D | htool.cxx | 121 PetscMPIInt csize; in MatIncreaseOverlap_Htool() local 129 PetscCallMPI(MPI_Comm_size(PetscObjectComm((PetscObject)is[i]), &csize)); in MatIncreaseOverlap_Htool() 130 PetscCheck(csize == 1, PETSC_COMM_SELF, PETSC_ERR_WRONG_MPI_SIZE, "Unsupported parallel IS"); in MatIncreaseOverlap_Htool()
|
| /petsc/doc/manual/ |
| H A D | dmplex.md | 340 PetscInt csize; 342 DMPlexVecGetClosure(dm, section, u, cell, &csize, &values); 344 DMPlexVecRestoreClosure(dm, section, u, cell, &csize, &values);
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mpibaij.c | 1884 PetscInt csize; in MatCreateSubMatrix_MPIBAIJ() local 1887 PetscCall(ISGetLocalSize(iscol, &csize)); in MatCreateSubMatrix_MPIBAIJ() 1894 …PetscCall(MatCreateSubMatrix_MPIBAIJ_Private(mat, isrow, iscol_local, csize, call, newmat, PETSC_F… in MatCreateSubMatrix_MPIBAIJ() 1908 PetscErrorCode MatCreateSubMatrix_MPIBAIJ_Private(Mat mat, IS isrow, IS iscol, PetscInt csize, MatR… in MatCreateSubMatrix_MPIBAIJ_Private() argument 1961 if (csize == PETSC_DECIDE) { in MatCreateSubMatrix_MPIBAIJ_Private() 1969 nlocal = csize / bs; in MatCreateSubMatrix_MPIBAIJ_Private()
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcprivate.c | 90 PetscInt rsize, csize, esize; in PCBDDCComputeNedelecChangeEdge() local 97 PetscCall(ISGetSize(extcol, &csize)); in PCBDDCComputeNedelecChangeEdge() 102 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, rsize, csize, ptr, Gins)); in PCBDDCComputeNedelecChangeEdge() 107 ptr += rsize * csize; in PCBDDCComputeNedelecChangeEdge() 108 PetscCall(MatCreateSeqDense(PETSC_COMM_SELF, esize, csize, ptr, &GEd)); in PCBDDCComputeNedelecChangeEdge() 5464 PetscInt rsize, *idxs_perm_r = NULL, csize, *idxs_perm_c = NULL; in MatCreateSubMatrixUnsorted() local 5470 PetscCall(ISGetLocalSize(iscol, &csize)); in MatCreateSubMatrixUnsorted() 5497 PetscCall(PetscMalloc1(csize, &idxs_perm_c)); in MatCreateSubMatrixUnsorted() 5498 PetscCall(PetscMalloc1(csize, &idxs_sorted)); in MatCreateSubMatrixUnsorted() 5499 for (i = 0; i < csize; i++) idxs_perm_c[i] = i; in MatCreateSubMatrixUnsorted() [all …]
|
| /petsc/src/ksp/pc/impls/patch/ |
| H A D | pcpatch.c | 1700 PetscInt csize, rsize; in PCPatchCreateMatrix_Private() local 1709 csize = rsize; in PCPatchCreateMatrix_Private() 1714 csize = rsize; in PCPatchCreateMatrix_Private() 1723 PetscCall(MatSetSizes(*mat, rsize, csize, rsize, csize)); in PCPatchCreateMatrix_Private()
|