Lines Matching refs:mem_estimate
965 PetscInt row, total_sz, ct, ct1, ct2, ct3, mem_estimate, oct2, l, start, end; in MatIncreaseOverlap_MPIAIJ_Receive() local
989 mem_estimate = 3 * ((total_sz > max1 ? total_sz : max1) + 1); in MatIncreaseOverlap_MPIAIJ_Receive()
991 PetscCall(PetscMalloc1(mem_estimate, &xdata[0])); in MatIncreaseOverlap_MPIAIJ_Receive()
1011 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIAIJ_Receive()
1012 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIAIJ_Receive()
1014 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIAIJ_Receive()
1017 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIAIJ_Receive()
1032 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIAIJ_Receive()
1033 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIAIJ_Receive()
1035 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIAIJ_Receive()
1038 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIAIJ_Receive()
1051 if (!(ct3 < mem_estimate)) { in MatIncreaseOverlap_MPIAIJ_Receive()
1052 new_estimate = (PetscInt)(1.5 * mem_estimate) + 1; in MatIncreaseOverlap_MPIAIJ_Receive()
1054 PetscCall(PetscArraycpy(tmp, xdata[0], mem_estimate)); in MatIncreaseOverlap_MPIAIJ_Receive()
1057 mem_estimate = new_estimate; in MatIncreaseOverlap_MPIAIJ_Receive()
1075 …quired %" PetscInt_FMT " bytes, no of mallocs = %" PetscInt_FMT "\n", mem_estimate, ct3, no_malloc… in MatIncreaseOverlap_MPIAIJ_Receive()