Home
last modified time | relevance | path

Searched refs:insertmode (Results 1 – 25 of 38) sorted by relevance

12

/petsc/src/vec/vec/impls/mpi/
H A Dcommonmpvec.c183 PetscErrorCode VecGhostUpdateBegin(Vec g, InsertMode insertmode, ScatterMode scattermode) in VecGhostUpdateBegin() argument
197 PetscCall(VecScatterBegin(v->localupdate, v->localrep, g, insertmode, scattermode)); in VecGhostUpdateBegin()
199 PetscCall(VecScatterBegin(v->localupdate, g, v->localrep, insertmode, scattermode)); in VecGhostUpdateBegin()
245 PetscErrorCode VecGhostUpdateEnd(Vec g, InsertMode insertmode, ScatterMode scattermode) in VecGhostUpdateEnd() argument
258 PetscCall(VecScatterEnd(v->localupdate, v->localrep, g, insertmode, scattermode)); in VecGhostUpdateEnd()
260 PetscCall(VecScatterEnd(v->localupdate, g, v->localrep, insertmode, scattermode)); in VecGhostUpdateEnd()
H A Dpbvec.c217 …PetscCallMPI(MPIU_Allreduce((PetscEnum *)&X->stash.insertmode, (PetscEnum *)&addv, 1, MPIU_ENUM, M… in VecAssemblyBegin_MPI_BTS()
220 …X->bstash.insertmode = X->stash.insertmode; /* Block stash implicitly tracks InsertMode of scalar … in VecAssemblyBegin_MPI_BTS()
241 x->sendhdr[i].insertmode = X->stash.insertmode; in VecAssemblyBegin_MPI_BTS()
299 X->stash.insertmode = NOT_SET_VALUES; in VecAssemblyEnd_MPI_BTS()
300 X->bstash.insertmode = NOT_SET_VALUES; in VecAssemblyEnd_MPI_BTS()
318 InsertMode imode = (InsertMode)x->recvhdr[i].insertmode; in VecAssemblyEnd_MPI_BTS()
384 X->stash.insertmode = NOT_SET_VALUES; in VecAssemblyEnd_MPI_BTS()
385 X->bstash.insertmode = NOT_SET_VALUES; in VecAssemblyEnd_MPI_BTS()
603 v->stash.insertmode = NOT_SET_VALUES; in VecCreate_MPI_Private()
604 v->bstash.insertmode = NOT_SET_VALUES; in VecCreate_MPI_Private()
H A Dpdvec.c739 …PetscCheck(xin->stash.insertmode != INSERT_VALUES || addv != ADD_VALUES, PETSC_COMM_SELF, PETSC_ER… in VecSetValues_MPI()
740 …PetscCheck(xin->stash.insertmode != ADD_VALUES || addv != INSERT_VALUES, PETSC_COMM_SELF, PETSC_ER… in VecSetValues_MPI()
743 xin->stash.insertmode = addv; in VecSetValues_MPI()
775 …PetscCheck(xin->stash.insertmode != INSERT_VALUES || addv != ADD_VALUES, PETSC_COMM_SELF, PETSC_ER… in VecSetValuesBlocked_MPI()
776 …PetscCheck(xin->stash.insertmode != ADD_VALUES || addv != INSERT_VALUES, PETSC_COMM_SELF, PETSC_ER… in VecSetValuesBlocked_MPI()
778 xin->stash.insertmode = addv; in VecSetValuesBlocked_MPI()
828 …PetscCallMPI(MPIU_Allreduce((PetscEnum *)&xin->stash.insertmode, (PetscEnum *)&addv, 1, MPIU_ENUM,… in VecAssemblyBegin_MPI()
830 xin->stash.insertmode = addv; /* in case this processor had no cache */ in VecAssemblyBegin_MPI()
831 xin->bstash.insertmode = addv; /* Block stash implicitly tracks InsertMode of scalar stash */ in VecAssemblyBegin_MPI()
866 if (vec->stash.insertmode == ADD_VALUES) { in VecAssemblyEnd_MPI()
[all …]
H A Dpvecimpl.h6 PetscInt insertmode; member
/petsc/src/mat/utils/
H A Dmatstash.c460 …PetscCallMPI(MPIU_Allreduce((PetscEnum *)&mat->insertmode, (PetscEnum *)&addv, 1, MPIU_ENUM, MPI_B… in MatStashScatterBegin_Ref()
462 mat->insertmode = addv; /* in case this processor had no cache */ in MatStashScatterBegin_Ref()
684 static PetscErrorCode MatStashSortCompress_Private(MatStash *stash, InsertMode insertmode) in MatStashSortCompress_Private() argument
716 if (insertmode == ADD_VALUES) { in MatStashSortCompress_Private()
829 …PetscCallMPI(MPIU_Allreduce((PetscEnum *)&mat->insertmode, (PetscEnum *)&addv, 1, MPIU_ENUM, MPI_B… in MatStashScatterBegin_BTS()
834 PetscCall(MatStashSortCompress_Private(stash, mat->insertmode)); in MatStashScatterBegin_BTS()
900 if (mat->insertmode == INSERT_VALUES) { in MatStashScatterBegin_BTS()
927 stash->insertmode = &mat->insertmode; in MatStashScatterBegin_BTS()
953 …if (PetscUnlikely(*stash->insertmode == NOT_SET_VALUES)) *stash->insertmode = block->row < 0 ? INS… in MatStashScatterGetMesg_BTS()
954 …PetscCheck(*stash->insertmode != INSERT_VALUES || block->row < 0, PETSC_COMM_SELF, PETSC_ERR_ARG_W… in MatStashScatterGetMesg_BTS()
[all …]
/petsc/src/vec/vec/utils/
H A Dvecstash.c386 switch (stash->insertmode) { in VecStashSortCompress_Private()
394 … SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Insert mode not supported 0x%x", stash->insertmode); in VecStashSortCompress_Private()
415 switch (stash->insertmode) { in VecStashSortCompress_Private()
423 … SETERRQ(PETSC_COMM_SELF, PETSC_ERR_SUP, "Insert mode not supported 0x%x", stash->insertmode); in VecStashSortCompress_Private()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A Dpetscdef.pxi41 cdef inline PetscInsertMode insertmode(object mode) \ function
H A DScatter.pyx280 cdef PetscInsertMode caddv = insertmode(addv)
303 cdef PetscInsertMode caddv = insertmode(addv)
334 cdef PetscInsertMode caddv = insertmode(addv)
H A DDMComposite.pyx134 cdef PetscInsertMode cimode = insertmode(imode)
H A Dpetscmat.pxi941 cdef PetscInsertMode addv = insertmode(oaddv)
993 cdef PetscInsertMode addv = insertmode(oaddv)
1047 cdef PetscInsertMode addv = insertmode(oaddv)
1073 addv = insertmode(oaddv)
H A DVec.pyx2819 cdef PetscInsertMode caddv = insertmode(addv)
2962 cdef PetscInsertMode caddv = insertmode(addv)
3242 cdef PetscInsertMode caddv = insertmode(addv)
3273 cdef PetscInsertMode caddv = insertmode(addv)
3324 cdef PetscInsertMode caddv = insertmode(addv)
3341 cdef PetscInsertMode caddv = insertmode(addv)
3375 cdef PetscInsertMode caddv = insertmode(addv)
H A DDMDA.pyx875 cdef PetscInsertMode im = insertmode(addv)
903 cdef PetscInsertMode im = insertmode(addv)
H A DDMSwarm.pyx675 cdef PetscInsertMode cmode = insertmode(mode)
711 cdef PetscInsertMode cmode = insertmode(mode)
/petsc/src/mat/impls/aij/mpi/
H A Dmpihashmat.h91 PetscCall(MatSetValues_MPI_Hash(A, 1, row + i, ncols, col + i, val + i, A->insertmode)); in MatFinishScatterAndSetValues_MPI_Hash()
108 A->insertmode = NOT_SET_VALUES; /* this was set by the previous calls to MatSetValues() */ in MatAssemblyEnd_MPI_Hash()
H A Dmmaij.c187 PetscCall(MatSetValues(Bnew, 1, &i, 1, &col, &v, B->insertmode)); in MatDisAssemble_MPIAIJ()
/petsc/src/mat/impls/aij/seq/
H A Dseqhashmat.h50 …etscSafePointerPlusOffset(cols, start), PetscSafePointerPlusOffset(values, start), B->insertmode)); in MatCopyHashToXAIJ_Seq_Hash()
/petsc/src/mat/impls/sbaij/mpi/
H A Dmmsbaij.c250 PetscCall(MatSetValues_SeqSBAIJ(Bnew, bs, rvals, 1, &col, atmp, B->insertmode)); in MatDisAssemble_MPISBAIJ()
/petsc/src/mat/interface/
H A Dmatrix.c946 …PetscCheck(A->insertmode == NOT_SET_VALUES, PETSC_COMM_SELF, PETSC_ERR_SUP, "Cannot reset to hash … in MatResetHash()
1542 if (mat->insertmode == NOT_SET_VALUES) mat->insertmode = addv; in MatSetValues()
1543 …else PetscCheck(mat->insertmode == addv, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Cannot mix ad… in MatSetValues()
1711 …PetscCheck(mat->insertmode != ADD_VALUES, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Cannot mix a… in MatSetValuesRow()
1713 mat->insertmode = INSERT_VALUES; in MatSetValuesRow()
2079 if (mat->insertmode == NOT_SET_VALUES) mat->insertmode = addv; in MatSetValuesBlocked()
2080 …else PetscCheck(mat->insertmode == addv, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Cannot mix ad… in MatSetValuesBlocked()
2464 if (mat->insertmode == NOT_SET_VALUES) mat->insertmode = addv; in MatSetValuesLocal()
2465 …else PetscCheck(mat->insertmode == addv, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Cannot mix ad… in MatSetValuesLocal()
2553 if (mat->insertmode == NOT_SET_VALUES) mat->insertmode = addv; in MatSetValuesBlockedLocal()
[all …]
/petsc/src/mat/impls/sell/mpi/
H A Dmmsell.c60 …Bnew, Bsell->sliceheight * i + row, sell->garray[Bsell->colidx[j]], Bsell->val[j], B->insertmode)); in MatDisAssemble_MPISELL()
H A Dmpisell.c312 PetscCall(MatSetValues_MPISELL(mat, 1, row + i, 1, col + i, val + i, mat->insertmode)); in MatAssemblyEnd_MPISELL()
1015 mat->insertmode = NOT_SET_VALUES; in MatDuplicate_MPISELL()
1817 B->insertmode = NOT_SET_VALUES; in MatCreate_MPISELL()
/petsc/src/mat/impls/baij/mpi/
H A Dmmbaij.c178 PetscCall(MatSetValuesBlocked_SeqBAIJ(Bnew, 1, &i, 1, &col, atmp, B->insertmode)); in MatDisAssemble_MPIBAIJ()
H A Dmpibaij.c925 PetscCall(MatSetValues_MPIBAIJ(mat, 1, row + i, ncols, col + i, val + i, mat->insertmode)); in MatAssemblyEnd_MPIBAIJ()
951 …Call(MatSetValuesBlocked_MPIBAIJ(mat, 1, row + i, ncols, col + i, val + i * bs2, mat->insertmode)); in MatAssemblyEnd_MPIBAIJ()
2856 B->insertmode = NOT_SET_VALUES; in MatCreate_MPIBAIJ()
3167 mat->insertmode = NOT_SET_VALUES; in MatDuplicate_MPIBAIJ()
3432 if (mat->insertmode == NOT_SET_VALUES) mat->insertmode = addv; in matmpibaijsetvaluesblocked_()
3433 …else PetscCheck(mat->insertmode == addv, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONGSTATE, "Cannot mix ad… in matmpibaijsetvaluesblocked_()
/petsc/src/mat/impls/scalapack/
H A Dmatscalapack.c1337 switch (A->insertmode) { in MatAssemblyEnd_ScaLAPACK()
1345 …etscObjectComm((PetscObject)A), PETSC_ERR_SUP, "No support for InsertMode %d", (int)A->insertmode); in MatAssemblyEnd_ScaLAPACK()
1532 …PetscCallMPI(MPIU_Allreduce((PetscEnum *)&mat->insertmode, (PetscEnum *)&addv, 1, MPIU_ENUM, MPI_B… in MatStashScatterBegin_ScaLAPACK()
1534 mat->insertmode = addv; /* in case this processor had no cache */ in MatStashScatterBegin_ScaLAPACK()
1786 A->insertmode = NOT_SET_VALUES; in MatCreate_ScaLAPACK()
/petsc/src/dm/impls/da/hypre/
H A Dmhyp.c305 B->insertmode = NOT_SET_VALUES; in MatCreate_HYPREStruct()
817 B->insertmode = NOT_SET_VALUES; in MatCreate_HYPRESStruct()
/petsc/include/petsc/private/
H A Dvecimpl.h150 InsertMode insertmode; member

12