Home
last modified time | relevance | path

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

/petsc/src/vec/vec/utils/
H A Dvecglvis.c18 Vec *Ufield; in VecView_GLVis() local
38 …ields_Internal(viewer, &nfields, &fec_type, &spacedim, &g2lfields, (PetscObject **)&Ufield, &ctx)); in VecView_GLVis()
48 …PetscCall(PetscObjectQuery((PetscObject)Ufield[i], "_glvis_info_container", (PetscObject *)&contai… in VecView_GLVis()
54 …PetscCall(PetscObjectContainerCompose((PetscObject)Ufield[i], "_glvis_info_container", info, Petsc… in VecView_GLVis()
57 PetscCall(PetscObjectQuery((PetscObject)Ufield[i], "__PETSc_dm", &fdm)); in VecView_GLVis()
64 PetscCall(PetscObjectCompose((PetscObject)Ufield[i], "__PETSc_dm", dm)); in VecView_GLVis()
70 PetscCall((*g2lfields)((PetscObject)U, nfields, (PetscObject *)Ufield, ctx)); in VecView_GLVis()
73 PetscCall(VecCopy(U, Ufield[0])); in VecView_GLVis()
81 PetscCall(PetscObjectQuery((PetscObject)Ufield[i], "__PETSc_dm", &dm)); in VecView_GLVis()
90 PetscCall(PetscObjectGetName((PetscObject)Ufield[i], &name)); in VecView_GLVis()
[all …]
/petsc/src/dm/impls/da/
H A Dgrglvis.c248 Vec xlocal, *Ufield; in DMSetUpGLVisViewer_DMDA() local
261 …(PetscMalloc6(dof, &fec_type, dof, &nlocal, dof, &bss, dof, &dims, dof, &fieldname, dof, &Ufield)); in DMSetUpGLVisViewer_DMDA()
318 … PetscCall(VecCreateMPI(PetscObjectComm((PetscObject)da), nlocal[i], PETSC_DECIDE, &Ufield[i])); in DMSetUpGLVisViewer_DMDA()
319 PetscCall(PetscObjectSetName((PetscObject)Ufield[i], fieldname[i])); in DMSetUpGLVisViewer_DMDA()
320 PetscCall(VecSetBlockSize(Ufield[i], PetscMax(bss[i], 1))); in DMSetUpGLVisViewer_DMDA()
321 PetscCall(VecSetDM(Ufield[i], da)); in DMSetUpGLVisViewer_DMDA()
324 …st char **)fec_type, dims, DMDASampleGLVisFields_Private, (PetscObject *)Ufield, ctx, DMDAFieldDes… in DMSetUpGLVisViewer_DMDA()
328 PetscCall(VecDestroy(&Ufield[i])); in DMSetUpGLVisViewer_DMDA()
330 PetscCall(PetscFree6(fec_type, nlocal, bss, dims, fieldname, Ufield)); in DMSetUpGLVisViewer_DMDA()
/petsc/src/sys/classes/viewer/impls/glvis/
H A Dglvis.c25 …PetscObject *Ufield; /* work vectors for visu… member
151 …t->windowtitle, nfields, &socket->fec_type, nfields, &socket->spacedim, nfields, &socket->Ufield)); in PetscViewerGLVisSetFields_GLVis()
159 socket->Ufield[i] = Vfield[i]; in PetscViewerGLVisSetFields_GLVis()
348 …Code (**g2lfield)(PetscObject, PetscInt, PetscObject[], void *), PetscObject *Ufield[], void **ctx) in PetscViewerGLVisGetFields_Internal() argument
357 if (Ufield) *Ufield = socket->Ufield; in PetscViewerGLVisGetFields_Internal()
517 PetscCall(PetscObjectDestroy(&socket->Ufield[i])); in PetscViewerDestroy_GLVis()
520 …tscFree5(socket->window, socket->windowtitle, socket->fec_type, socket->spacedim, socket->Ufield)); in PetscViewerDestroy_GLVis()
/petsc/src/dm/impls/plex/
H A Dplexglvis.c43 Vec xlocal, xfield, *Ufield; in DMSetUpGLVisViewer_Plex() local
92 …ocal, maxfields, &bs, maxfields, &dims, maxfields, &fec_type, totdofs, &idxs, maxfields, &Ufield)); in DMSetUpGLVisViewer_Plex()
207 PetscCall(VecCreateMPI(PetscObjectComm((PetscObject)dm), nlocal[f], PETSC_DECIDE, &Ufield[f])); in DMSetUpGLVisViewer_Plex()
208 PetscCall(PetscObjectSetName((PetscObject)Ufield[f], fieldname[f])); in DMSetUpGLVisViewer_Plex()
209 PetscCall(VecSetBlockSize(Ufield[f], bs[f])); in DMSetUpGLVisViewer_Plex()
210 PetscCall(VecSetDM(Ufield[f], dm)); in DMSetUpGLVisViewer_Plex()
214 … char **)fec_type, dims, DMPlexSampleGLVisFields_Private, (PetscObject *)Ufield, ctx, DestroyGLVis… in DMSetUpGLVisViewer_Plex()
218 PetscCall(VecDestroy(&Ufield[f])); in DMSetUpGLVisViewer_Plex()
220 PetscCall(PetscFree7(fieldname, nlocal, bs, dims, fec_type, idxs, Ufield)); in DMSetUpGLVisViewer_Plex()