Searched refs:viewerP (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex4.c | 203 PetscViewer viewerP; // Momentum density viewer member 261 options->viewerP = NULL; in ProcessOptions() 491 PetscCall(PetscViewerDrawOpen(comm, NULL, "Momentum Density", 800, 0, 400, 300, &ctx->viewerP)); in SetupContext() 492 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ctx->viewerP, "p_")); in SetupContext() 493 PetscCall(PetscViewerDrawGetDraw(ctx->viewerP, 0, &draw)); in SetupContext() 495 PetscCall(PetscViewerSetFromOptions(ctx->viewerP)); in SetupContext() 568 PetscCall(PetscViewerDestroy(&ctx->viewerP)); in DestroyContext() 1086 PetscCall(VecView(p, ctx->viewerP)); in MonitorMomentFields()
|