Lines Matching refs:mem_estimate
410 PetscInt row, total_sz, ct, ct1, ct2, ct3, mem_estimate, oct2, l, start, end; in MatIncreaseOverlap_MPIBAIJ_Receive() local
434 mem_estimate = 3 * ((total_sz > max1 ? total_sz : max1) + 1); in MatIncreaseOverlap_MPIBAIJ_Receive()
436 PetscCall(PetscMalloc1(mem_estimate, &xdata[0])); in MatIncreaseOverlap_MPIBAIJ_Receive()
456 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIBAIJ_Receive()
457 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIBAIJ_Receive()
459 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIBAIJ_Receive()
462 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIBAIJ_Receive()
477 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIBAIJ_Receive()
478 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIBAIJ_Receive()
480 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIBAIJ_Receive()
483 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIBAIJ_Receive()
496 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIBAIJ_Receive()
497 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIBAIJ_Receive()
499 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIBAIJ_Receive()
502 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIBAIJ_Receive()
520 …es, required %" PetscInt_FMT ", no of mallocs = %" PetscInt_FMT "\n", mem_estimate, ct3, no_malloc… in MatIncreaseOverlap_MPIBAIJ_Receive()