Lines Matching refs:nf
10 PetscInt nf; member
20 for (i = 0; i < ctx->nf; i++) PetscCall(VecScatterDestroy(&ctx->scctx[i])); in DestroyGLVisViewerCtx_Private()
26 static PetscErrorCode DMPlexSampleGLVisFields_Private(PetscObject oX, PetscInt nf, PetscObject oXfi… in DMPlexSampleGLVisFields_Private() argument
32 for (f = 0; f < nf; f++) { in DMPlexSampleGLVisFields_Private()
138 PetscCall(PetscStrallocpy(name, &fieldname[ctx->nf])); in DMSetUpGLVisViewer_Plex()
139 bs[ctx->nf] = Nc; in DMSetUpGLVisViewer_Plex()
140 dims[ctx->nf] = dim; in DMSetUpGLVisViewer_Plex()
142 nlocal[ctx->nf] = Nc * Nv; in DMSetUpGLVisViewer_Plex()
143 PetscCall(PetscStrallocpy(fec, &fec_type[ctx->nf])); in DMSetUpGLVisViewer_Plex()
154 nlocal[ctx->nf] = Nc * totc; in DMSetUpGLVisViewer_Plex()
155 PetscCall(PetscStrallocpy(fec, &fec_type[ctx->nf])); in DMSetUpGLVisViewer_Plex()
166 PetscCall(VecScatterCreate(xlocal, isfield, xfield, NULL, &ctx->scctx[ctx->nf])); in DMSetUpGLVisViewer_Plex()
169 ctx->nf++; in DMSetUpGLVisViewer_Plex()
178 PetscCall(PetscStrallocpy(comp, &fieldname[ctx->nf])); in DMSetUpGLVisViewer_Plex()
179 bs[ctx->nf] = 1; /* Does PetscFV support components with different block size? */ in DMSetUpGLVisViewer_Plex()
180 nlocal[ctx->nf] = totc; in DMSetUpGLVisViewer_Plex()
181 dims[ctx->nf] = dim; in DMSetUpGLVisViewer_Plex()
182 PetscCall(PetscStrallocpy(fec, &fec_type[ctx->nf])); in DMSetUpGLVisViewer_Plex()
192 PetscCall(VecScatterCreate(xlocal, isfield, xfield, NULL, &ctx->scctx[ctx->nf])); in DMSetUpGLVisViewer_Plex()
195 ctx->nf++; in DMSetUpGLVisViewer_Plex()
206 for (f = 0; f < ctx->nf; f++) { in DMSetUpGLVisViewer_Plex()
214 …PetscCall(PetscViewerGLVisSetFields(viewer, ctx->nf, (const char **)fec_type, dims, DMPlexSampleGL… in DMSetUpGLVisViewer_Plex()
215 for (f = 0; f < ctx->nf; f++) { in DMSetUpGLVisViewer_Plex()