Home
last modified time | relevance | path

Searched refs:subSize (Results 1 – 4 of 4) sorted by relevance

/petsc/src/dm/interface/
H A Ddmi.c84 PetscInt pStart, pEnd, Nc, subSize = 0, subOff = 0; in PetscSectionSelectFields_Private() local
144 subSize += pSubSize; in PetscSectionSelectFields_Private()
165 PetscCall(PetscMalloc1(subSize, &subIndices)); in PetscSectionSelectFields_Private()
215 …(subSize == subOff, PETSC_COMM_SELF, PETSC_ERR_ARG_INCOMP, "The offset array size %" PetscInt_FMT … in PetscSectionSelectFields_Private()
216 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)gs), subSize, subIndices, PETSC_OWN_POINTER… in PetscSectionSelectFields_Private()
220 for (PetscInt i = 0; i < subSize; i += bs) { in PetscSectionSelectFields_Private()
479 PetscInt subSize, subOff, pStart, pEnd, p, start, end, dummy; in DMCreateSectionSuperDM() local
482 PetscCall(PetscSectionGetConstrainedStorageSize(sectionGlobals[i], &subSize)); in DMCreateSectionSuperDM()
483 PetscCall(PetscMalloc1(subSize, &subIndices)); in DMCreateSectionSuperDM()
502 PetscCall(ISCreateGeneral(comm, subSize, subIndices, PETSC_OWN_POINTER, &(*is)[i])); in DMCreateSectionSuperDM()
/petsc/src/vec/vec/utils/
H A Dvsection.c198 PetscInt Nc, subSize = 0, subOff = 0, p; in PetscSectionGetField_Internal() local
207 subSize += fdof; in PetscSectionGetField_Internal()
209 PetscCall(PetscMalloc1(subSize, &subIndices)); in PetscSectionGetField_Internal()
227 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)v), subSize, subIndices, PETSC_OWN_POINTER,… in PetscSectionGetField_Internal()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c584 PetscInt gstart, subSize = 0, extSize = 0, subOff = 0, newOff = 0; in VecView_Plex_Local_HDF5_Internal() local
593 subSize += fdof; in VecView_Plex_Local_HDF5_Internal()
598 PetscCall(VecSetSizes(subv, subSize + extSize, PETSC_DETERMINE)); in VecView_Plex_Local_HDF5_Internal()
621 … for (fc = 0; fc < fdof; ++fc, ++newOff) suba[subSize + newOff] = ga[goff + poff + fc - gstart]; in VecView_Plex_Local_HDF5_Internal()
/petsc/src/dm/impls/plex/
H A Dplex.c10872 PetscInt subSize = 0, subOff = 0, pStart, pEnd, p; in DMCreateSubDomainDM_Plex() local
10893 subSize += pSubSize; in DMCreateSubDomainDM_Plex()
10913 PetscCall(PetscMalloc1(subSize, &subIndices)); in DMCreateSubDomainDM_Plex()
10938 …PetscCall(ISCreateGeneral(PetscObjectComm((PetscObject)dm), subSize, subIndices, PETSC_OWN_POINTER… in DMCreateSubDomainDM_Plex()
10942 for (i = 0; i < subSize; i += bs) { in DMCreateSubDomainDM_Plex()