Home
last modified time | relevance | path

Searched refs:nvals (Results 1 – 5 of 5) sorted by relevance

/petsc/src/vec/vec/utils/tagger/impls/
H A Dsimple.c16 PetscInt nvals, bs; in VecTaggerSetFromOptions_Simple() local
26 nvals = 2 * bs; in VecTaggerSetFromOptions_Simple()
27 PetscCall(PetscMalloc1(nvals, &inBoxVals)); in VecTaggerSetFromOptions_Simple()
31 …rray("-vec_tagger_box", "lower and upper bounds of the box", funcstring, inBoxVals, &nvals, &set)); in VecTaggerSetFromOptions_Simple()
34nvals == 2 * bs, PetscObjectComm((PetscObject)tagger), PETSC_ERR_ARG_INCOMP, "Expect array of %" P… in VecTaggerSetFromOptions_Simple()
/petsc/src/mat/tests/
H A Dex73.c139 PetscScalar *nvals; in main() local
160 PetscCall(PetscMalloc2(nzmax, &ncols, nzmax, &nvals)); in main()
161 PetscCall(PetscArrayzero(nvals, nzmax)); in main()
169 PetscCall(MatSetValues(J, 1, &nrow, 2 * nzl, ncols, nvals, INSERT_VALUES)); in main()
171 PetscCall(MatSetValues(J, 1, &nrow, 2 * nzl, ncols, nvals, INSERT_VALUES)); in main()
181 PetscCall(PetscFree2(ncols, nvals)); in main()
/petsc/src/ksp/ksp/tutorials/amrex/output/
H A Damrex_1.testout36 [TOP]::eb2.box_lo(nvals = 3) :: [0.23, 0.37, 0.4]
37 [TOP]::eb2.box_hi(nvals = 3) :: [0.55, 0.88, 0.7]
38 [TOP]::eb2.box_has_fluid_inside(nvals = 1) :: [0]
/petsc/src/vec/vec/utils/
H A Dvecstash.c331 PetscErrorCode VecStashScatterGetMesg_Private(VecStash *stash, PetscMPIInt *nvals, PetscInt **rows,… in VecStashScatterGetMesg_Private() argument
351 PetscCallMPI(MPI_Get_count(&recv_status, MPIU_INT, nvals)); in VecStashScatterGetMesg_Private()
354 PetscCallMPI(MPI_Get_count(&recv_status, MPIU_SCALAR, nvals)); in VecStashScatterGetMesg_Private()
356 *nvals = *nvals / bs; in VecStashScatterGetMesg_Private()
/petsc/src/mat/utils/
H A Dmatstash.c620 PetscErrorCode MatStashScatterGetMesg_Private(MatStash *stash, PetscMPIInt *nvals, PetscInt **rows,… in MatStashScatterGetMesg_Private() argument
623 PetscCall((*stash->ScatterGetMesg)(stash, nvals, rows, cols, vals, flg)); in MatStashScatterGetMesg_Private()
627 PETSC_INTERN PetscErrorCode MatStashScatterGetMesg_Ref(MatStash *stash, PetscMPIInt *nvals, PetscIn… in MatStashScatterGetMesg_Ref() argument
653 PetscCallMPI(MPI_Get_count(&recv_status, MPIU_SCALAR, nvals)); in MatStashScatterGetMesg_Ref()
655 *nvals = *nvals / bs2; in MatStashScatterGetMesg_Ref()
657 PetscCallMPI(MPI_Get_count(&recv_status, MPIU_INT, nvals)); in MatStashScatterGetMesg_Ref()
659 …*nvals = *nvals / 2; /* This message has both row indices and col i… in MatStashScatterGetMesg_Ref()
667 *cols = *rows + *nvals; in MatStashScatterGetMesg_Ref()