| /petsc/src/mat/impls/sell/seq/ |
| H A D | sell.h | 19 PetscInt nonew; /* 1 don't add new nonzeros, -1 generate error on new */ \ 147 …PetscCheck(a->nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at … 148 …if (a->nonew != 1 && !(value == 0.0 && a->ignorezeroentries) && a->rlen[row] >= (a->sliidx[row / a… 154 …PetscCheck(a->nonew != -2, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "New nonzero at (%" PetscInt…
|
| H A D | sell.c | 943 a->nonew = (flg ? 0 : 1); in MatSetOption_SeqSELL() 946 a->nonew = (flg ? -1 : 0); in MatSetOption_SeqSELL() 949 a->nonew = (flg ? -2 : 0); in MatSetOption_SeqSELL() 1537 PetscInt *cp, nonew = a->nonew, lastcol = -1; in MatSetValues_SeqSELL() local 1589 if (nonew == 1) goto noinsert; in MatSetValues_SeqSELL() 1590 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero (%" Pe… in MatSetValues_SeqSELL() 1592 … a->sliceheight, row / a->sliceheight, row, col, a->colidx, a->val, cp, vp, nonew, MatScalar, mul); in MatSetValues_SeqSELL() 1595 …x, a->sliceheight, row / a->sliceheight, row, col, a->colidx, a->val, cp, vp, nonew, MatScalar, 1); in MatSetValues_SeqSELL() 1935 …PetscCheck(a->nonew, PETSC_COMM_SELF, PETSC_ERR_ORDER, "Must call MatSetOption(A,MAT_NEW_NONZERO_L… in MatStoreValues_SeqSELL() 1950 …PetscCheck(a->nonew, PETSC_COMM_SELF, PETSC_ERR_ORDER, "Must call MatSetOption(A,MAT_NEW_NONZERO_L… in MatRetrieveValues_SeqSELL() [all …]
|
| /petsc/src/mat/utils/ |
| H A D | gcreate.c | 37 oldValA = ((Mat_SeqAIJ *)A->data)->nonew; in MatShift_Basic() 38 ((Mat_SeqAIJ *)A->data)->nonew = 0; // so that new nonzero locations are allowed in MatShift_Basic() 41 oldValB = ((Mat_SeqAIJ *)B->data)->nonew; in MatShift_Basic() 42 ((Mat_SeqAIJ *)B->data)->nonew = 0; in MatShift_Basic() 52 if (A) ((Mat_SeqAIJ *)A->data)->nonew = oldValA; in MatShift_Basic() 53 if (B) ((Mat_SeqAIJ *)B->data)->nonew = oldValB; in MatShift_Basic()
|
| /petsc/src/mat/impls/sbaij/seq/ |
| H A D | sbaij.c | 191 a->nonew = (flg ? 0 : 1); in MatSetOption_SeqSBAIJ() 194 a->nonew = (flg ? -1 : 0); in MatSetOption_SeqSBAIJ() 197 a->nonew = (flg ? -2 : 0); in MatSetOption_SeqSBAIJ() 580 PetscInt *aj = a->j, nonew = a->nonew, bs2 = a->bs2, bs = A->rmap->bs, stepval; in MatSetValuesBlocked_SeqSBAIJ() local 646 if (nonew == 1) goto noinsert2; in MatSetValuesBlocked_SeqSBAIJ() 647 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new block index no… in MatSetValuesBlocked_SeqSBAIJ() 648 …MatSeqXAIJReallocateAIJ(A, a->mbs, bs2, nrow, row, col, rmax, aa, ai, aj, rp, ap, imax, nonew, Mat… in MatSetValuesBlocked_SeqSBAIJ() 742 PetscInt *aj = a->j, nonew = a->nonew, bs = A->rmap->bs, brow, bcol; in MatSetValues_SeqSBAIJ() local 802 if (nonew == 1) goto noinsert1; in MatSetValues_SeqSBAIJ() 803 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero (%" Pe… in MatSetValues_SeqSBAIJ() [all …]
|
| /petsc/src/mat/impls/sbaij/mpi/ |
| H A D | mmsbaij.c | 229 if (Bbaij->nonew >= 0) { /* Inherit insertion error options (if positive). */ in MatDisAssemble_MPISBAIJ() 230 ((Mat_SeqSBAIJ *)Bnew->data)->nonew = Bbaij->nonew; in MatDisAssemble_MPISBAIJ()
|
| H A D | mpisbaij.c | 227 if (a->nonew == 1) goto a_noinsert; \ 228 …PetscCheck(a->nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at … 229 …ocateAIJ(A, a->mbs, bs2, nrow, brow, bcol, rmax, aa, ai, aj, rp, ap, aimax, a->nonew, MatScalar); \ 267 if (b->nonew == 1) goto b_noinsert; \ 268 …PetscCheck(b->nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at … 269 …ocateAIJ(B, b->mbs, bs2, nrow, brow, bcol, rmax, ba, bi, bj, rp, ap, bimax, b->nonew, MatScalar); \ 359 if (col < 0 && !((Mat_SeqSBAIJ *)baij->A->data)->nonew) { in MatSetValues_MPISBAIJ() 405 PetscInt *aj = a->j, nonew = a->nonew, bs2 = a->bs2, bs = A->rmap->bs; in MatSetValuesBlocked_SeqSBAIJ_Inlined() local 456 if (nonew == 1) goto noinsert2; in MatSetValuesBlocked_SeqSBAIJ_Inlined() 457 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new block index no… in MatSetValuesBlocked_SeqSBAIJ_Inlined() [all …]
|
| /petsc/src/mat/impls/sell/mpi/ |
| H A D | mpisell.c | 86 if (nonew == 1) { \ 91 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at glo… 92 …idx, a->sliceheight, row / sliceheight, row, col, a->colidx, a->val, cp1, vp1, nonew, MatScalar); \ 130 if (nonew == 1) { \ 135 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at glo… 136 …idx, b->sliceheight, row / sliceheight, row, col, b->colidx, b->val, cp2, vp2, nonew, MatScalar); \ 210 if (col < 0 && !((Mat_SeqSELL *)sell->B->data)->nonew) { in MatSetValues_MPISELL() 331 if (!((Mat_SeqSELL *)sell->B->data)->nonew) { in MatAssemblyEnd_MPISELL() 346 …if ((!mat->was_assembled && mode == MAT_FINAL_ASSEMBLY) || !((Mat_SeqSELL *)sell->A->data)->nonew)… in MatAssemblyEnd_MPISELL() 931 PetscInt nonew = sell->nonew; in MatShift_MPISELL() local [all …]
|
| H A D | mmsell.c | 46 if (Bsell->nonew >= 0) { /* Inherit insertion error options (if positive). */ in MatDisAssemble_MPISELL() 47 ((Mat_SeqSELL *)Bnew->data)->nonew = Bsell->nonew; in MatDisAssemble_MPISELL()
|
| /petsc/src/mat/impls/aij/mpi/ |
| H A D | mmaij.c | 171 if (Baij->nonew >= 0) { /* Inherit insertion error options (if positive). */ in MatDisAssemble_MPIAIJ() 172 ((Mat_SeqAIJ *)Bnew->data)->nonew = Baij->nonew; in MatDisAssemble_MPIAIJ()
|
| H A D | mpiaij.c | 428 if (nonew == 1) { \ 433 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at glo… 434 …MatSeqXAIJReallocateAIJ(A, am, 1, nrow1, row, col, rmax1, aa, ai, aj, rp1, ap1, aimax, nonew, MatS… 472 if (nonew == 1) { \ 477 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at glo… 478 …MatSeqXAIJReallocateAIJ(B, bm, 1, nrow2, row, col, rmax2, ba, bi, bj, rp2, ap2, bimax, nonew, MatS… 547 PetscInt nonew; in MatSetValues_MPIAIJ() local 578 nonew = a->nonew; in MatSetValues_MPIAIJ() 592 …if (col < 0 && !((Mat_SeqAIJ *)aij->B->data)->nonew) { /* col < 0 means in[j] is a new col for B */ in MatSetValues_MPIAIJ() 612 …PetscCheck(1 == ((Mat_SeqAIJ *)aij->B->data)->nonew, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "I… in MatSetValues_MPIAIJ() [all …]
|
| /petsc/src/mat/impls/baij/mpi/ |
| H A D | mmbaij.c | 169 if (Bbaij->nonew >= 0) { /* Inherit insertion error options (if positive). */ in MatDisAssemble_MPIBAIJ() 170 ((Mat_SeqBAIJ *)Bnew->data)->nonew = Bbaij->nonew; in MatDisAssemble_MPIBAIJ()
|
| H A D | mpibaij.c | 186 if (a->nonew == 1) goto a_noinsert; \ 187 …PetscCheck(a->nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at … 188 …ocateAIJ(A, a->mbs, bs2, nrow, brow, bcol, rmax, aa, ai, aj, rp, ap, aimax, a->nonew, MatScalar); \ 226 if (b->nonew == 1) goto b_noinsert; \ 227 …PetscCheck(b->nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at … 228 …ocateAIJ(B, b->mbs, bs2, nrow, brow, bcol, rmax, ba, bi, bj, rp, ap, bimax, b->nonew, MatScalar); \ 289 if (col < 0 && !((Mat_SeqBAIJ *)baij->B->data)->nonew) { in MatSetValues_MPIBAIJ() 331 PetscInt *aj = a->j, nonew = a->nonew, bs2 = a->bs2, bs = A->rmap->bs; in MatSetValuesBlocked_SeqBAIJ_Inlined() local 379 if (nonew == 1) goto noinsert2; in MatSetValuesBlocked_SeqBAIJ_Inlined() 380 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new global block i… in MatSetValuesBlocked_SeqBAIJ_Inlined() [all …]
|
| /petsc/src/mat/impls/aij/seq/ |
| H A D | symtranspose.c | 49 at->nonew = 0; in MatTransposeSymbolic_SeqAIJ() 130 at->nonew = 0; in MatTranspose_SeqAIJ()
|
| H A D | aij.h | 49 PetscInt nonew; /* 1 don't add new nonzeros, -1 generate error on new */ \ 181 PetscInt nonew = 0, nounused = 0; \ 184 nonew = ((Mat_SeqAIJ *)A->data)->nonew; \ 192 ((Mat_SeqAIJ *)A->data)->nonew = nonew; \
|
| H A D | aij.c | 407 PetscInt *aj = a->j, nonew = a->nonew, lastcol = -1; in MatSetValues_SeqAIJ() local 453 if (nonew == 1) goto noinsert; in MatSetValues_SeqAIJ() 454 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new nonzero at (%"… in MatSetValues_SeqAIJ() 456 …cateAIJ_structure_only(A, A->rmap->n, 1, nrow, row, col, rmax, ai, aj, rp, imax, nonew, MatScalar); in MatSetValues_SeqAIJ() 458 …JReallocateAIJ(A, A->rmap->n, 1, nrow, row, col, rmax, aa, ai, aj, rp, ap, imax, nonew, MatScalar); in MatSetValues_SeqAIJ() 1326 a->nonew = (flg ? 0 : 1); in MatSetOption_SeqAIJ() 1329 a->nonew = (flg ? -1 : 0); in MatSetOption_SeqAIJ() 1332 a->nonew = (flg ? -2 : 0); in MatSetOption_SeqAIJ() 2159 …PetscCheck(!a->nonew || rows[i] < d, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Matrix is missing… in MatZeroRowsColumns_SeqAIJ() 3652 …PetscCheck(aij->nonew, PETSC_COMM_SELF, PETSC_ERR_ORDER, "Must call MatSetOption(A,MAT_NEW_NONZERO… in MatStoreValues_SeqAIJ() [all …]
|
| H A D | matmatmult.c | 64 …aij->nonew = -1; /* this indicates that inserting a new value in the matrix that generates a new… in MatSetSeqAIJWithArrays_private() 223 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_LLCondensed() 460 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Scalable_fast() 563 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Scalable() 666 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Heap() 782 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_BTHeap() 1079 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_RowMerge() 1179 c->nonew = 0; in MatMatMultSymbolic_SeqAIJ_SeqAIJ_Sorted()
|
| H A D | matptap.c | 164 c->nonew = 0; in MatPtAPSymbolic_SeqAIJ_SeqAIJ_SparseAxpy()
|
| /petsc/src/mat/impls/baij/seq/ |
| H A D | baij.c | 1566 a->nonew = (flg ? 0 : 1); in MatSetOption_SeqBAIJ() 1569 a->nonew = (flg ? -1 : 0); in MatSetOption_SeqBAIJ() 1572 a->nonew = (flg ? -2 : 0); in MatSetOption_SeqBAIJ() 2110 PetscInt *aj = a->j, nonew = a->nonew, bs2 = a->bs2, bs = A->rmap->bs, stepval; in MatSetValuesBlocked_SeqBAIJ() local 2181 if (nonew == 1) goto noinsert2; in MatSetValuesBlocked_SeqBAIJ() 2182 …PetscCheck(nonew != -1, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Inserting a new blocked index … in MatSetValuesBlocked_SeqBAIJ() 2184 …locateAIJ_structure_only(A, a->mbs, bs2, nrow, row, col, rmax, ai, aj, rp, imax, nonew, MatScalar); in MatSetValuesBlocked_SeqBAIJ() 2186 …AIJReallocateAIJ(A, a->mbs, bs2, nrow, row, col, rmax, aa, ai, aj, rp, ap, imax, nonew, MatScalar); in MatSetValuesBlocked_SeqBAIJ() 2448 PetscInt *aj = a->j, nonew = a->nonew, bs = A->rmap->bs, brow, bcol; in MatSetValues_SeqBAIJ() local 2498 if (nonew == 1) goto noinsert1; in MatSetValues_SeqBAIJ() [all …]
|
| /petsc/src/mat/impls/blockmat/seq/ |
| H A D | blockmat.c | 219 PetscInt *aj = a->j, nonew = a->nonew, bs = A->rmap->bs, brow, bcol; in MatSetValues_BlockMat() local 259 if (nonew == 1) goto noinsert1; in MatSetValues_BlockMat() 262 …MatSeqXAIJReallocateAIJ(A, a->mbs, 1, nrow, brow, bcol, rmax, aa, ai, aj, rp, ap, imax, nonew, Mat… in MatSetValues_BlockMat()
|
| /petsc/src/ksp/pc/impls/ml/ |
| H A D | ml.c | 217 mat->nonew = 0; in MatConvert_MPIAIJ_ML()
|
| /petsc/src/mat/impls/maij/ |
| H A D | maij.c | 784 c->nonew = 0; in MatPtAPSymbolic_SeqAIJ_SeqMAIJ()
|
| /petsc/src/mat/impls/aij/seq/kokkos/ |
| H A D | aijkok.kokkos.cxx | 1577 …aseq->nonew = -1; /*this indicates that inserting a new value in the matrix that generates a new… in MatSetSeqAIJKokkosWithCSRMatrix()
|