Home
last modified time | relevance | path

Searched refs:viewerPhi (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c153 PetscViewer viewerPhi; // Potential viewer member
199 options->viewerPhi = NULL; in ProcessOptions()
383 PetscCall(PetscViewerDrawOpen(comm, NULL, "Potential", 400, 0, 400, 300, &ctx->viewerPhi)); in SetupContext()
384 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ctx->viewerPhi, "phi_")); in SetupContext()
385 PetscCall(PetscViewerDrawGetDraw(ctx->viewerPhi, 0, &draw)); in SetupContext()
387 PetscCall(PetscViewerSetFromOptions(ctx->viewerPhi)); in SetupContext()
411 PetscCall(PetscViewerDestroy(&ctx->viewerPhi)); in DestroyContext()
860 PetscCall(VecView(phi, ctx->viewerPhi)); in MonitorPoisson()
H A Dex4.c201 PetscViewer viewerPhi; // Potential viewer member
259 options->viewerPhi = NULL; in ProcessOptions()
468 PetscCall(PetscViewerDrawOpen(comm, NULL, "Potential", 400, 0, 400, 300, &ctx->viewerPhi)); in SetupContext()
469 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ctx->viewerPhi, "phi_")); in SetupContext()
470 PetscCall(PetscViewerDrawGetDraw(ctx->viewerPhi, 0, &draw)); in SetupContext()
472 PetscCall(PetscViewerSetFromOptions(ctx->viewerPhi)); in SetupContext()
566 PetscCall(PetscViewerDestroy(&ctx->viewerPhi)); in DestroyContext()
1376 PetscCall(VecView(phi, ctx->viewerPhi)); in MonitorPoisson()