Home
last modified time | relevance | path

Searched refs:subv (Results 1 – 4 of 4) sorted by relevance

/petsc/src/vec/vec/utils/
H A Dvsection.c195 …tscSection sectionGlobal, Vec v, PetscInt field, PetscInt pStart, PetscInt pEnd, IS *is, Vec *subv) in PetscSectionGetField_Internal() argument
228 PetscCall(VecGetSubVector(v, *is, subv)); in PetscSectionGetField_Internal()
229 PetscCall(VecSetBlockSize(*subv, Nc)); in PetscSectionGetField_Internal()
233 …tscSection sectionGlobal, Vec v, PetscInt field, PetscInt pStart, PetscInt pEnd, IS *is, Vec *subv) in PetscSectionRestoreField_Internal() argument
236 PetscCall(VecRestoreSubVector(v, *is, subv)); in PetscSectionRestoreField_Internal()
271 Vec subv; in PetscSectionVecNorm() local
274 PetscCall(PetscSectionGetField_Internal(s, gs, x, f, pStart, pEnd, &is, &subv)); in PetscSectionVecNorm()
275 PetscCall(VecNorm(subv, type, &val[f])); in PetscSectionVecNorm()
276 PetscCall(PetscSectionRestoreField_Internal(s, gs, x, f, pStart, pEnd, &is, &subv)); in PetscSectionVecNorm()
/petsc/src/vec/vec/tests/
H A Dex26f.F9013 Vec :: v, subv
37 PetscCallA(VecGetSubVector(v, index_set, subv, ierr))
38 PetscCallA(VecRestoreSubVector(v, index_set, subv, ierr))
/petsc/src/dm/impls/composite/
H A Dpack.c1289 PetscViewer *subv; member
1300 for (i = 0; i < n; i++) PetscCall(PetscViewerDestroy(&ctx->subv[i])); in DestroyGLVisViewerCtx_Private()
1301 PetscCall(PetscFree2(ctx->subv, ctx->vecs)); in DestroyGLVisViewerCtx_Private()
1321 … PetscCall(PetscViewerGLVisGetFields_Internal(ctx->subv[i], &nfi, NULL, NULL, &g2l, NULL, &fctx)); in DMCompositeSampleGLVisFields_Private()
1346 PetscCall(PetscMalloc2(n, &ctx->subv, n, &ctx->vecs)); in DMSetUpGLVisViewer_Composite()
1350 PetscCall(PetscViewerCreate(PetscObjectComm(odm), &ctx->subv[i])); in DMSetUpGLVisViewer_Composite()
1351 PetscCall(PetscViewerSetType(ctx->subv[i], PETSCVIEWERGLVIS)); in DMSetUpGLVisViewer_Composite()
1352 PetscCall(PetscViewerGLVisSetDM_Internal(ctx->subv[i], (PetscObject)dms[i])); in DMSetUpGLVisViewer_Composite()
1353 PetscCall(PetscViewerGLVisGetFields_Internal(ctx->subv[i], &nf, NULL, NULL, NULL, NULL, NULL)); in DMSetUpGLVisViewer_Composite()
1363 …PetscCall(PetscViewerGLVisGetFields_Internal(ctx->subv[i], &nf, &fec, &sd, NULL, (PetscObject **)&… in DMSetUpGLVisViewer_Composite()
/petsc/src/dm/impls/plex/hdf5/
H A Dplexhdf5.c551 Vec subv; in VecView_Plex_Local_HDF5_Internal() local
597 PetscCall(VecCreate(PetscObjectComm((PetscObject)gv), &subv)); in VecView_Plex_Local_HDF5_Internal()
598 PetscCall(VecSetSizes(subv, subSize + extSize, PETSC_DETERMINE)); in VecView_Plex_Local_HDF5_Internal()
599 PetscCall(VecSetBlockSize(subv, Nc)); in VecView_Plex_Local_HDF5_Internal()
600 PetscCall(VecSetType(subv, VECSTANDARD)); in VecView_Plex_Local_HDF5_Internal()
603 PetscCall(VecGetArray(subv, &suba)); in VecView_Plex_Local_HDF5_Internal()
626 PetscCall(VecRestoreArray(subv, &suba)); in VecView_Plex_Local_HDF5_Internal()
629 …Call(PetscSectionGetField_Internal(section, sectionGlobal, gv, f, pStart[t], pEnd[t], &is, &subv)); in VecView_Plex_Local_HDF5_Internal()
637 PetscCall(PetscObjectSetName((PetscObject)subv, subname)); in VecView_Plex_Local_HDF5_Internal()
638 if (isseq) PetscCall(VecView_Seq(subv, viewer)); in VecView_Plex_Local_HDF5_Internal()
[all …]