Home
last modified time | relevance | path

Searched refs:VecCreateSeqWithArray (Results 1 – 25 of 51) sorted by relevance

123

/petsc/src/mat/tutorials/
H A Dex2.c44 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size, x, &X)); in main()
49 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size, y, &Y)); in main()
54 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size, z, &Z)); in main()
93 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size1, x, &X1)); in main()
94 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size2, x + size1, &X2)); in main()
95 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size1, z, &Z1)); in main()
96 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, size2, z + size1, &Z2)); in main()
/petsc/src/vec/vec/tests/
H A Dex60.c44 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, bs, n, NULL, &x1)); in main()
45 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, bs, n, NULL, &x2)); in main()
46 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, bs, n, NULL, &x3)); in main()
H A Dex40.c21 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n, array + 1, &x)); in main()
H A Dex59.cxx29 PetscCall(VecCreateSeqWithArray(PETSC_COMM_WORLD, 1, n, xHost, &y)); in main()
H A Dex62.c23 if (size == 1) PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n, array, &x)); in main()
/petsc/src/ksp/ksp/tests/
H A Dex61.c46 PetscCall(VecCreateSeqWithArray(MPI_COMM_SELF, 1, size, x, &X)); in main()
51 PetscCall(VecCreateSeqWithArray(MPI_COMM_SELF, 1, size, y, &Y)); in main()
56 PetscCall(VecCreateSeqWithArray(MPI_COMM_SELF, 1, size, z, &Z)); in main()
/petsc/src/dm/impls/da/
H A Ddagtona.c47 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, dd->w, N, NULL, &tmplocal)); in DMDAGlobalToNaturalAllCreate()
93 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, dd->w, M, NULL, &tmplocal)); in DMDANaturalAllToGlobalCreate()
/petsc/src/ksp/pc/impls/tfs/
H A Dtfs.c99 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, a->A->rmap->n, NULL, &tfs->b)); in PCSetUp_TFS()
100 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, a->A->cmap->n, NULL, &tfs->xd)); in PCSetUp_TFS()
101 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, a->B->cmap->n, NULL, &tfs->xo)); in PCSetUp_TFS()
/petsc/src/mat/tests/
H A Dex88.c92 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, 2, multadd, &diff)); in TestMatrix()
113 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, 2, multtadd, &diff)); in TestMatrix()
135 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, 2, multtadd, &diff)); in TestMatrix()
161 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, 2, diag, &diff)); in TestMatrix()
H A Dex163.c96 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, m, NULL, &x)); in main()
97 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n, NULL, &y)); in main()
/petsc/src/ksp/ksp/tutorials/
H A Dex83f.F9087 PetscCallA(VecCreateSeqWithArray(PETSC_COMM_SELF, one, n, b, rhs, ierr))
88 PetscCallA(VecCreateSeqWithArray(PETSC_COMM_SELF, one, n, x, solution, ierr))
H A Dex61f.F90120 …PetscCallA(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, nrow, PETSC_NULL_SCALAR_ARRAY, col_f_vecb, ie…
H A Dex13.c154 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, N, NULL, &userctx->b)); in UserInitializeLinearSolver()
H A Dex13f90.F9050 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, one, Ntot, PETSC_NULL_SCALAR_ARRAY, b, ierr))
/petsc/src/vec/vec/utils/
H A Dvecs.c24 PetscCall(VecCreateSeqWithArray(comm, 1, p * m, a, &(*x)->v)); in VecsCreateSeqWithArray()
/petsc/src/ts/impls/implicit/radau5/
H A Dradau5.c85 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, ND, NULL, &cvode->work)); in TSSolve_Radau5()
86 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, ND, NULL, &cvode->workf)); in TSSolve_Radau5()
/petsc/src/mat/impls/sbaij/mpi/
H A Dmmsbaij.c156 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, bs * mbs, ptr, &sbaij->slvec1a)); in MatSetUpMultiply_MPISBAIJ()
157 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, nt - bs * mbs, PetscSafePointerPlusOffset(ptr,… in MatSetUpMultiply_MPISBAIJ()
161 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, nt - bs * mbs, PetscSafePointerPlusOffset(ptr,… in MatSetUpMultiply_MPISBAIJ()
/petsc/src/mat/impls/aij/mpi/crl/
H A Dmcrl.c79 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, a->B->cmap->n, array + nd, &aijcrl->fwork)); in MatMPIAIJCRL_create_aijcrl()
/petsc/src/vec/vec/impls/mpi/
H A Dpbvec.c39 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, win->map->bs, win->map->n + w->nghost, arr, &vw->… in VecDuplicateWithArray_MPI()
773 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n + nghost, larray, &w->localrep)); in VecCreateGhostWithArray()
901 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, n + nghost, larray, &w->localrep)); in VecMPISetGhost()
977 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, bs, n + bs * nghost, larray, &w->localrep)); in VecCreateGhostBlockWithArray()
/petsc/src/ksp/pc/impls/wb/
H A Dwb.c198 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, Nint, NULL, &x)); in DMDAGetWireBasketInterpolation()
200 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, Nint, NULL, &b)); in DMDAGetWireBasketInterpolation()
520 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, Nint, NULL, &x)); in DMDAGetFaceInterpolation()
522 PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, Nint, NULL, &b)); in DMDAGetFaceInterpolation()
/petsc/src/dm/dt/tests/
H A Dex4.c88 … PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, dim, numDofs[depth] * dim, valsCopy, &vec)); in CheckSymmetry()
/petsc/src/dm/impls/stag/
H A Dstag1d.c423 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, PetscMax(stag->entriesPerElement, 1), stag->entri… in DMSetUp_Stag_1d()
492 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, PetscMax(stag->entriesPerElement, 1), stag->entri… in DMStagPopulateLocalToGlobalInjective_1d()
/petsc/src/vec/vec/impls/mpi/mpiviennacl/
H A Dmpiviennacl.cxx126 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, win->map->n + w->nghost, array, &vw->localrep)… in VecDuplicate_MPIViennaCL()
/petsc/src/ksp/pc/impls/bddc/
H A Dbddcscalingbasic.c488 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, subset_size, deluxe_ctx->workspace, &deluxe_ct… in PCBDDCScalingSetUp_Deluxe_Private()
489 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, subset_size, deluxe_ctx->workspace + subset_si… in PCBDDCScalingSetUp_Deluxe_Private()
/petsc/src/vec/vec/impls/mpi/cupm/
H A Dvecmpicupm_impl.hpp135 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, v->map->bs, v->map->n + nghost, array, &ylocrep)); in Duplicate()

123