Lines Matching refs:maxallocrow

87 PetscErrorCode MatSeqSELLSetPreallocation_SeqSELL(Mat B, PetscInt maxallocrow, const PetscInt rlen[…  in MatSeqSELLSetPreallocation_SeqSELL()  argument
97 if (maxallocrow >= 0 || rlen) realalloc = PETSC_TRUE; in MatSeqSELLSetPreallocation_SeqSELL()
98 if (maxallocrow == MAT_SKIP_ALLOCATION) { in MatSeqSELLSetPreallocation_SeqSELL()
100 maxallocrow = 0; in MatSeqSELLSetPreallocation_SeqSELL()
107 if (maxallocrow == PETSC_DEFAULT || maxallocrow == PETSC_DECIDE) maxallocrow = 5; in MatSeqSELLSetPreallocation_SeqSELL()
108 …PetscCheck(maxallocrow >= 0, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "maxallocrow cannot be les… in MatSeqSELLSetPreallocation_SeqSELL()
136 if (maxallocrow == PETSC_DEFAULT || maxallocrow == PETSC_DECIDE) maxallocrow = 10; in MatSeqSELLSetPreallocation_SeqSELL()
137 else if (maxallocrow < 0) maxallocrow = 1; in MatSeqSELLSetPreallocation_SeqSELL()
139 rlenmax = maxallocrow; in MatSeqSELLSetPreallocation_SeqSELL()
141 while (b->sliceheight * maxallocrow % DEVICE_MEM_ALIGN) maxallocrow++; in MatSeqSELLSetPreallocation_SeqSELL()
143 for (i = 0; i <= totalslices; i++) b->sliidx[i] = b->sliceheight * i * maxallocrow; in MatSeqSELLSetPreallocation_SeqSELL()
148 maxallocrow = 0; in MatSeqSELLSetPreallocation_SeqSELL()
159 maxallocrow = PetscMax(b->sliidx[i], maxallocrow); in MatSeqSELLSetPreallocation_SeqSELL()
171 maxallocrow = PetscMax(b->sliidx[totalslices], maxallocrow); in MatSeqSELLSetPreallocation_SeqSELL()
192 b->maxallocrow = maxallocrow; in MatSeqSELLSetPreallocation_SeqSELL()
196 b->rlenmax = maxallocrow; in MatSeqSELLSetPreallocation_SeqSELL()
2272 c->maxallocrow = a->maxallocrow; in MatDuplicateNoCreate_SeqSELL()