Home
last modified time | relevance | path

Searched refs:newSize (Results 1 – 2 of 2) sorted by relevance

/petsc/src/sys/utils/
H A Dsortso.c556 …ic inline PetscErrorCode PetscTimSortResizeBuffer_Private(PetscTimSortBuffer *buff, size_t newSize) in PetscTimSortResizeBuffer_Private() argument
559 if (PetscLikely(newSize <= buff->size)) PetscFunctionReturn(PETSC_SUCCESS); in PetscTimSortResizeBuffer_Private()
562 size_t newMax = PetscMin(newSize * newSize, buff->maxsize); in PetscTimSortResizeBuffer_Private()
/petsc/src/dm/impls/plex/
H A Dplextree.c788 PetscInt newSize, *newSupports, pStart, pEnd, p, d, depth; in DMPlexTreeExchangeSupports() local
824 PetscCall(PetscSectionGetStorageSize(newSupportSection, &newSize)); in DMPlexTreeExchangeSupports()
825 PetscCall(PetscMalloc1(newSize, &newSupports)); in DMPlexTreeExchangeSupports()