Home
last modified time | relevance | path

Searched refs:nghost (Results 1 – 21 of 21) sorted by relevance

/petsc/src/vec/vec/tutorials/
H A Dex9.c22 PetscInt nlocal = 6, nghost = 2, ifrom[2], i, rstart, rend; in main() local
73 PetscCall(PetscMalloc1(nlocal + nghost, &tarray)); in main()
74 …PetscCall(VecCreateGhostWithArray(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, tarray, &… in main()
79 PetscCall(VecMPISetGhost(gxs, nghost, ifrom)); in main()
81 PetscCall(VecCreateGhost(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, &gxs)); in main()
125 …for (i = 0; i < nlocal + nghost; i++) PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "%" Pets… in main()
135 for (i = 0; i < nghost; i++) array[nlocal + i] = rank ? (PetscScalar)4 : (PetscScalar)8; in main()
145 …for (i = 0; i < nlocal + nghost; i++) PetscCall(PetscSynchronizedPrintf(PETSC_COMM_WORLD, "%" Pets… in main()
H A Dex14f.F9018 PetscInt nlocal, nghost, ifrom(2)
27 nghost = 2
71 …PetscCallA(VecCreateGhostBlockWithArray(PETSC_COMM_WORLD, bs, nlocal, PETSC_DECIDE, nghost, ifrom,…
73 …PetscCallA(VecCreateGhostBlock(PETSC_COMM_WORLD, bs, nlocal, PETSC_DECIDE, nghost, ifrom, gxs, ier…
H A Dex9f.F9018 PetscInt nlocal, nghost, ifrom(2)
27 nghost = 2
69 …PetscCallA(VecCreateGhostWithArray(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, tarray, …
71 PetscCallA(VecCreateGhost(PETSC_COMM_WORLD, nlocal, PETSC_DECIDE, nghost, ifrom, gxs, ierr))
/petsc/src/vec/vec/impls/mpi/
H A Dpbvec.c31 PetscCall(VecCreate_MPI_Private(*v, PETSC_TRUE, w->nghost, array)); // array could be NULL in VecDuplicateWithArray_MPI()
39 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, win->map->bs, win->map->n + w->nghost, arr, &vw->… in VecDuplicateWithArray_MPI()
432 PetscInt *indices, n, nghost, rstart, i; in VecGetLocalToGlobalMapping_MPI_VecGhost() local
441 PetscCall(ISGetLocalSize(ghostis, &nghost)); in VecGetLocalToGlobalMapping_MPI_VecGhost()
445 PetscCall(PetscMalloc1(n + nghost, &indices)); in VecGetLocalToGlobalMapping_MPI_VecGhost()
448 PetscCall(PetscArraycpy(indices + n, ghostidx, nghost)); in VecGetLocalToGlobalMapping_MPI_VecGhost()
450 …PetscCall(ISLocalToGlobalMappingCreate(PETSC_COMM_SELF, 1, n + nghost, indices, PETSC_OWN_POINTER,… in VecGetLocalToGlobalMapping_MPI_VecGhost()
556 PetscErrorCode VecCreate_MPI_Private(Vec v, PetscBool alloc, PetscInt nghost, const PetscScalar arr… in VecCreate_MPI_Private() argument
581 s->nghost = nghost; in VecCreate_MPI_Private()
590 PetscInt n = v->map->n + nghost; in VecCreate_MPI_Private()
[all …]
H A Dpvecimpl.h22 PetscInt nghost; /* number of ghost points on this process */ member
/petsc/src/dm/impls/moab/tests/
H A Dex3.cxx15 PetscInt nghost; /* Number of ghost layers in the mesh */ member
26 options->nghost = 1; in ProcessOptions()
41 …ost", "Number of ghost layers in the mesh", "ex3.cxx", options->nghost, &options->nghost, NULL, 0)… in ProcessOptions()
62 PetscCall(DMMoabLoadFromFile(comm, user->dim, user->nghost, user->input_file, "", &user->dm)); in CreateMesh()
67 …PetscCall(DMMoabCreateBoxMesh(comm, user->dim, user->simplex, NULL, user->nele, user->nghost, &use… in CreateMesh()
/petsc/src/vec/vec/impls/mpi/cupm/
H A Dvecmpicupm_impl.hpp61 …PM<T>::VecCreate_IMPL_Private_(Vec v, PetscBool *alloc_missing, PetscInt nghost, PetscScalar *) no… in VecCreate_IMPL_Private_() argument
68 PetscCall(VecCreate_MPI_Private(v, PETSC_FALSE, nghost, nullptr)); in VecCreate_IMPL_Private_()
74 …PM_(Vec v, PetscDeviceContext dctx, PetscBool allocate_missing, PetscInt nghost, PetscScalar *host… in CreateMPICUPM_() argument
77 PetscCall(base_type::VecCreate_IMPL_Private(v, nullptr, nghost)); in CreateMPICUPM_()
120 const auto nghost = vimpl->nghost; in Duplicate() local
126 …plicate_CUPMBase(v, y, dctx, [=](Vec z) { return CreateMPICUPM_(z, dctx, PETSC_FALSE, nghost); })); in Duplicate()
135 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, v->map->bs, v->map->n + nghost, array, &ylocrep)); in Duplicate()
/petsc/src/dm/impls/moab/
H A Ddmmbvec.cxx170 PetscCall(PetscMalloc1((dmmoab->nloc + dmmoab->nghost) * dmmoab->numFields, varray)); in DMMoabVecGetArray()
175nghost, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Mismatch between local vertices and tag partition f… in DMMoabVecGetArray()
246nghost, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Mismatch between local vertices and tag partition f… in DMMoabVecRestoreArray()
329 PetscCall(PetscMalloc1((dmmoab->nloc + dmmoab->nghost) * dmmoab->numFields, varray)); in DMMoabVecGetArrayRead()
334nghost, PETSC_COMM_SELF, PETSC_ERR_ARG_WRONG, "Mismatch between local vertices and tag partition f… in DMMoabVecGetArrayRead()
479 …dmmoab->numFields * dmmoab->nloc, dmmoab->numFields * dmmoab->n, dmmoab->nghost, &dmmoab->gsindice… in DMCreateVector_Moab_Private()
504 …dmmoab->numFields * dmmoab->nloc, dmmoab->numFields * dmmoab->n, dmmoab->nghost, &dmmoab->gsindice… in DMCreateVector_Moab_Private()
H A Ddmmbutil.cxx499 …etscInt dim, PetscBool useSimplex, const PetscReal *bounds, PetscInt nele, PetscInt nghost, DM *dm) in DMMoabCreateBoxMesh() argument
533 …PetscCheck(nghost >= 0, PETSC_COMM_WORLD, PETSC_ERR_ARG_OUTOFRANGE, "Number of ghost layers cannot… in DMMoabCreateBoxMesh()
550 dmmoab->nghostrings = nghost; in DMMoabCreateBoxMesh()
737 merr = pcomm->exchange_ghost_cells(dim, 0, nghost, dim, true, false, &dmmoab->fileset); in DMMoabCreateBoxMesh()
740 merr = pcomm->exchange_ghost_cells(dim, 0, nghost, dim, true, false); in DMMoabCreateBoxMesh()
785 …ions_Private(PetscBool by_rank, PetscInt numproc, PetscInt dim, PetscInt nghost, MoabReadMode mode… in DMMoab_GetReadOptions_Private() argument
801 …if (nghost) PetscCall(PetscSNPrintf(ropts_pargh, PETSC_MAX_PATH_LEN, "PARALLEL_GHOSTS=%" PetscInt_… in DMMoab_GetReadOptions_Private()
809 …PetscCall(PetscSNPrintf(ropts, PETSC_MAX_PATH_LEN, "%s%s%s%s%s", ropts_par, nghost ? ropts_pargh :… in DMMoab_GetReadOptions_Private()
834 PetscErrorCode DMMoabLoadFromFile(MPI_Comm comm, PetscInt dim, PetscInt nghost, const char *filenam… in DMMoabLoadFromFile() argument
863 dmmoab->nghostrings = nghost; in DMMoabLoadFromFile()
[all …]
H A Ddmmoab.cxx286 dmmoab->nghost = dmmoab->vghost->size(); in DMMoabSetLocalVertices()
543 if (nvg) *nvg = ((DM_Moab *)dm->data)->nghost; in DMMoabGetLocalSize()
1010 dmmoab->nghost = dmmoab->vghost->size(); in DMSetUp_Moab()
1014 …d - %" PetscInt_FMT ".\n", dmmoab->fileset, dmmoab->vlocal->size(), dmmoab->nloc, dmmoab->nghost)); in DMSetUp_Moab()
1068nghost, PETSC_COMM_SELF, PETSC_ERR_ARG_OUTOFRANGE, "Mismatch between local and owned+ghost vertice… in DMSetUp_Moab()
1074 if (dmmoab->nghost) { /* next get the ghosted indices */ in DMSetUp_Moab()
1510 ((DM_Moab *)dm->data)->nghost = 0; in DMCreate_Moab()
H A Ddmmbmg.cxx182 nlghsizp = (dmbp->nloc + dmbp->nghost); // *dmb1->numFields; in DMCreateInterpolation_Moab()
/petsc/src/snes/tutorials/
H A Dex42.c44 PetscInt nghost = 2; in main() local
46 PetscCall(PetscOptionsGetInt(NULL, NULL, "-nghost", &nghost, NULL)); in main()
47 PetscCall(VecCreateGhost(PETSC_COMM_WORLD, 2, PETSC_DECIDE, PetscMin(nghost, 2), gIdx, &x)); in main()
/petsc/src/dm/impls/composite/
H A Dpackimpl.h25 …PetscInt nghost; /* number of all local entries (includes DMDA ghost points) … member
H A Dpack.c761 com->nghost += nlocal; in DMCompositeAddDM()
849 PetscCall(VecSetSizes(*lvec, com->nghost, PETSC_DECIDE)); in DMCreateLocalVector_Composite()
1701 com->nghost = 0; in DMCreate_Composite()
/petsc/include/petsc/private/
H A Ddmmbimpl.h44 …PetscInt n, nloc, nghost; /* Number of global, local only and shared vertices for curren… member
H A Dveccupmimpl.h520 …<T, D>::VecCreate_IMPL_Private(Vec v, PetscBool *alloc_missing, PetscInt nghost, PetscScalar *host… in VecCreate_IMPL_Private() argument
522 return D::VecCreate_IMPL_Private_(v, alloc_missing, nghost, host_array); in VecCreate_IMPL_Private()
/petsc/src/vec/vec/impls/mpi/mpiviennacl/
H A Dmpiviennacl.cxx119 PetscCall(VecCreate_MPI_Private(*v, PETSC_FALSE, w->nghost, 0)); in VecDuplicate_MPIViennaCL()
126 …PetscCall(VecCreateSeqWithArray(PETSC_COMM_SELF, 1, win->map->n + w->nghost, array, &vw->localrep)… in VecDuplicate_MPIViennaCL()
360 PetscErrorCode VecCreate_MPIViennaCL_Private(Vec vv, PetscBool alloc, PetscInt nghost, const Vienna… in VecCreate_MPIViennaCL_Private() argument
/petsc/src/vec/vec/impls/shared/
H A Dshvec.c21 PetscCall(VecCreate_MPI_Private(*v, PETSC_FALSE, w->nghost, array)); in VecDuplicate_Shared()
/petsc/src/vec/vec/impls/mpi/kokkos/
H A Dmpikok.kokkos.cxx107 …PetscCallCXX(w_dual = PetscScalarKokkosDualView("w_dual", win->map->n + wdata->nghost)); // Kokkos… in VecDuplicate_MPIKokkos()
293 …if (wmpi->nghost) { // currently only do GEMV optimization for vectors withou… in VecDuplicateVecs_MPIKokkos_GEMV()
/petsc/doc/manual/
H A Dvec.md1178 VecCreateGhost(MPI_Comm comm, PetscInt n, PetscInt N, PetscInt nghost, PetscInt *ghosts, Vec *vv)
1184 VecCreateGhostWithArray(MPI_Comm comm, PetscInt n, PetscInt N, PetscInt nghost, PetscInt *ghosts, P…
1188 global entries (or `NULL`), and `nghost` is the number of ghost
1189 entries. The array `ghosts` is of size `nghost` and contains the
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DVec.pyx3296 ``values[nlocal:nlocal+nghost]``.