Searched refs:maxNsend (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/vec/vec/impls/mpi/ |
| H A D | pdvec.c | 969 …PetscInt maxNsend = size >= 128 ? 128 : size; /* Assume max 128 neighbors; realloc when nee… in VecSetPreallocationCOO_MPI() local 972 PetscCall(PetscMalloc2(maxNsend, &sendto, maxNsend, &nentries)); in VecSetPreallocationCOO_MPI() 986 if (nsend >= maxNsend) { /* Double the remote ranks arrays if not long enough */ in VecSetPreallocationCOO_MPI() 989 PetscInt maxNsend2 = (maxNsend <= size / 2) ? maxNsend * 2 : size; in VecSetPreallocationCOO_MPI() 992 PetscCall(PetscArraycpy(sendto2, sendto, maxNsend)); in VecSetPreallocationCOO_MPI() 993 PetscCall(PetscArraycpy(nentries2, nentries2, maxNsend + 1)); in VecSetPreallocationCOO_MPI() 997 maxNsend = maxNsend2; in VecSetPreallocationCOO_MPI()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mpiaij.c | 6411 …PetscInt maxNsend = size >= 128 ? 128 : size; /* Assume max 128 neighbors; realloc when nee… in MatSetPreallocationCOO_MPIAIJ() local 6414 PetscCall(PetscMalloc2(maxNsend, &sendto, maxNsend, &nentries)); in MatSetPreallocationCOO_MPIAIJ() 6428 if (nsend >= maxNsend) { /* Double the remote ranks arrays if not long enough */ in MatSetPreallocationCOO_MPIAIJ() 6431 PetscInt maxNsend2 = (maxNsend <= size / 2) ? maxNsend * 2 : size; in MatSetPreallocationCOO_MPIAIJ() 6434 PetscCall(PetscArraycpy(sendto2, sendto, maxNsend)); in MatSetPreallocationCOO_MPIAIJ() 6435 PetscCall(PetscArraycpy(nentries2, nentries, maxNsend)); in MatSetPreallocationCOO_MPIAIJ() 6439 maxNsend = maxNsend2; in MatSetPreallocationCOO_MPIAIJ()
|