Searched refs:maxsize (Results 1 – 6 of 6) sorted by relevance
| /petsc/src/mat/utils/ |
| H A D | pheap.c | 62 PetscErrorCode PetscHeapCreate(PetscInt maxsize, PetscHeap *heap) in PetscHeapCreate() argument 70 h->alloc = maxsize + ARITY; /* We waste all but one slot (loc=1) in the first ARITY slots */ in PetscHeapCreate()
|
| /petsc/src/dm/impls/plex/ |
| H A D | plexvtu.c | 435 PetscInt maxsize = 0; in DMPlexVTKWriteAll_VTU() local 437 maxsize = PetscMax(maxsize, (PetscInt)(gpiece[r].nvertices * 3 * sizeof(PetscVTUReal))); in DMPlexVTKWriteAll_VTU() 438 maxsize = PetscMax(maxsize, (PetscInt)(gpiece[r].ncells * 3 * sizeof(PetscVTUReal))); in DMPlexVTKWriteAll_VTU() 439 maxsize = PetscMax(maxsize, (PetscInt)(gpiece[r].nconn * sizeof(PetscVTKInt))); in DMPlexVTKWriteAll_VTU() 441 PetscCall(PetscMalloc(maxsize, &buffer)); in DMPlexVTKWriteAll_VTU()
|
| H A D | plexfluent.c | 193 PetscInt numEntries, numFaces, maxsize = 0, offset = 0; in DMPlexCreateFluent_ReadSection() local 225 maxsize = (numFaceVert + 3) * numFaces; in DMPlexCreateFluent_ReadSection() 226 PetscCall(PetscMalloc1(maxsize, (PetscInt **)&s->data)); in DMPlexCreateFluent_ReadSection() 228 if (offset + numFaceVert + 3 >= maxsize) { in DMPlexCreateFluent_ReadSection() 231 PetscCall(PetscMalloc1(maxsize * 2, &tmp)); in DMPlexCreateFluent_ReadSection() 232 PetscCall(PetscArraycpy(tmp, (PetscInt *)s->data, maxsize)); in DMPlexCreateFluent_ReadSection() 234 maxsize *= 2; in DMPlexCreateFluent_ReadSection()
|
| /petsc/config/BuildSystem/config/utilities/ |
| H A D | cacheDetails.py | 7 …(self, name, type_name, help_descr, default=None, min_value=0, max_value=min(sys.maxsize,2**31-1)):
|
| /petsc/src/sys/utils/ |
| H A D | sortso.c | 553 size_t maxsize; member 562 size_t newMax = PetscMin(newSize * newSize, buff->maxsize); in PetscTimSortResizeBuffer_Private() 993 buff.maxsize = (size_t)n * size; in PetscTimSort() 1117 abuff.maxsize = (size_t)n * asize; in PetscTimSortWithArray() 1120 bbuff.maxsize = (size_t)n * bsize; in PetscTimSortWithArray()
|
| /petsc/src/ksp/pc/impls/bddc/ |
| H A D | bddcprivate.c | 168 PetscInt i, j, extmem, cum, maxsize, nee; in PCBDDCNedelecSupport() local 943 maxsize = 0; in PCBDDCNedelecSupport() 951 maxsize = PetscMax(maxsize, size); in PCBDDCNedelecSupport() 1019 i *= maxsize; in PCBDDCNedelecSupport() 1288 extmem *= maxsize; in PCBDDCNedelecSupport() 1327 PetscCall(PetscMalloc2((5 + cum + maxsize) * maxsize, &work, maxsize, &rwork)); in PCBDDCNedelecSupport()
|