Home
last modified time | relevance | path

Searched refs:localSize (Results 1 – 8 of 8) sorted by relevance

/petsc/src/dm/interface/
H A Ddmi.c7 PetscInt localSize, bs, blockSize = -1, pStart, pEnd, p; in DMCreateGlobalVector_Section_Private() local
43 PetscCall(PetscSectionGetConstrainedStorageSize(gSection, &localSize)); in DMCreateGlobalVector_Section_Private()
44localSize % blockSize == 0, PetscObjectComm((PetscObject)dm), PETSC_ERR_ARG_WRONG, "Mismatch betwe… in DMCreateGlobalVector_Section_Private()
46 PetscCall(VecSetSizes(*vec, localSize, PETSC_DETERMINE)); in DMCreateGlobalVector_Section_Private()
57 PetscInt localSize, blockSize = -1, pStart, pEnd, p; in DMCreateLocalVector_Section_Private() local
69 PetscCall(PetscSectionGetStorageSize(section, &localSize)); in DMCreateLocalVector_Section_Private()
71 PetscCall(VecSetSizes(*vec, localSize, localSize)); in DMCreateLocalVector_Section_Private()
H A Ddm.c4304 PetscInt localSize, bs; in DMPrintLocalVec() local
4316 PetscCall(VecGetLocalSize(x, &localSize)); in DMPrintLocalVec()
4319 …PetscCall(VecCreateMPIWithArray(PetscObjectComm((PetscObject)dm), bs, localSize, PETSC_DETERMINE, … in DMPrintLocalVec()
/petsc/src/dm/impls/plex/
H A Dplexnatural.c76 PetscInt ssize, pStart, pEnd, p, localSize, maxStorageSize; in DMPlexCreateGlobalToNaturalSF() local
105 PetscCall(PetscSectionGetStorageSize(sectionDist, &localSize)); in DMPlexCreateGlobalToNaturalSF()
106 …PetscCallMPI(MPIU_Allreduce(&localSize, &maxStorageSize, 1, MPIU_INT, MPI_MAX, PetscObjectComm((Pe… in DMPlexCreateGlobalToNaturalSF()
H A Dplexpartition.c862 PetscInt *adjusted, i, localSize, offset; in PetscPartitionerDMPlexPartition() local
865 PetscCall(ISGetLocalSize(*partition, &localSize)); in PetscPartitionerDMPlexPartition()
866 PetscCall(PetscMalloc1(localSize, &adjusted)); in PetscPartitionerDMPlexPartition()
869 PetscCall(PetscMalloc1(localSize, &map)); in PetscPartitionerDMPlexPartition()
874 for (i = 0; i < localSize; i++) adjusted[i] = map[partIdx[i]]; in PetscPartitionerDMPlexPartition()
878 …PetscCall(ISCreateGeneral(PETSC_COMM_SELF, localSize, adjusted, PETSC_OWN_POINTER, &newPartition)); in PetscPartitionerDMPlexPartition()
H A Dplex.c2894 PetscInt localSize, localStart = 0; in DMCreateMatrix_Plex() local
2905 PetscCall(PetscSectionGetConstrainedStorageSize(sectionGlobal, &localSize)); in DMCreateMatrix_Plex()
2906 …PetscCallMPI(MPI_Exscan(&localSize, &localStart, 1, MPIU_INT, MPI_SUM, PetscObjectComm((PetscObjec… in DMCreateMatrix_Plex()
2908 PetscCall(MatSetSizes(*J, localSize, localSize, PETSC_DETERMINE, PETSC_DETERMINE)); in DMCreateMatrix_Plex()
2937 PetscCall(PetscCalloc1(localSize, &pblocks)); in DMCreateMatrix_Plex()
3008 …PetscCall(PetscCalloc4(localSize / bs, &dnz, localSize / bs, &onz, localSize / bs, &dnzu, localSiz… in DMCreateMatrix_Plex()
3015 for (PetscInt i = 0; i < localSize; i += PetscMax(1, pblocks[i])) { in DMCreateMatrix_Plex()
/petsc/src/dm/impls/network/
H A Dnetwork.c2465 PetscInt eStart, eEnd, vStart, vEnd, rstart, nrows, *rows, localSize; in DMCreateMatrix_Network() local
2496 PetscCall(PetscSectionGetConstrainedStorageSize(sectionGlobal, &localSize)); in DMCreateMatrix_Network()
2497 PetscCall(MatSetSizes(*J, localSize, localSize, PETSC_DETERMINE, PETSC_DETERMINE)); in DMCreateMatrix_Network()
2505 PetscCall(VecSetSizes(vd_nz, localSize, PETSC_DECIDE)); in DMCreateMatrix_Network()
2513 PetscCall(PetscMalloc1(localSize, &rows)); in DMCreateMatrix_Network()
2607 PetscCall(PetscMalloc2(localSize, &dnnz, localSize, &onnz)); in DMCreateMatrix_Network()
2614 for (j = 0; j < localSize; j++) { in DMCreateMatrix_Network()
/petsc/src/vec/is/section/interface/
H A Dsection.c1737 PetscInt pStart, pEnd, p, localSize = 0; in PetscSectionGetPointLayout() local
1745 if (dof >= 0) ++localSize; in PetscSectionGetPointLayout()
1748 PetscCall(PetscLayoutSetLocalSize(*layout, localSize)); in PetscSectionGetPointLayout()
1784 PetscInt pStart, pEnd, p, localSize = 0; in PetscSectionGetValueLayout() local
1795 if (dof - cdof > 0) localSize += dof - cdof; in PetscSectionGetValueLayout()
1798 PetscCall(PetscLayoutSetLocalSize(*layout, localSize)); in PetscSectionGetValueLayout()
/petsc/src/ksp/pc/impls/patch/
H A Dpcpatch.c2468 PetscInt localSize; in PCSetUp_PATCH() local
2539 localSize = patch->subspaceOffsets[patch->nsubspaces]; in PCSetUp_PATCH()
2540 PetscCall(VecCreateSeq(PETSC_COMM_SELF, localSize, &patch->localRHS)); in PCSetUp_PATCH()