Searched refs:mem_estimate (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | baijov.c | 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() [all …]
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiov.c | 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() [all …]
|