Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c151 PetscViewer viewerRho; // Charge density viewer member
197 options->viewerRho = NULL; in ProcessOptions()
353 PetscCall(PetscViewerDrawOpen(comm, NULL, "Charge Density", 0, 0, 400, 300, &ctx->viewerRho)); in SetupContext()
354 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ctx->viewerRho, "rho_")); in SetupContext()
355 PetscCall(PetscViewerDrawGetDraw(ctx->viewerRho, 0, &draw)); in SetupContext()
357 PetscCall(PetscViewerSetFromOptions(ctx->viewerRho)); in SetupContext()
405 PetscCall(PetscViewerDestroy(&ctx->viewerRho)); in DestroyContext()
847 PetscCall(VecView(rho, ctx->viewerRho)); in MonitorPoisson()
H A Dex4.c199 PetscViewer viewerRho; // Charge density viewer member
257 options->viewerRho = NULL; in ProcessOptions()
438 PetscCall(PetscViewerDrawOpen(comm, NULL, "Charge Density", 0, 0, 400, 300, &ctx->viewerRho)); in SetupContext()
439 PetscCall(PetscObjectSetOptionsPrefix((PetscObject)ctx->viewerRho, "rho_")); in SetupContext()
440 PetscCall(PetscViewerDrawGetDraw(ctx->viewerRho, 0, &draw)); in SetupContext()
442 PetscCall(PetscViewerSetFromOptions(ctx->viewerRho)); in SetupContext()
560 PetscCall(PetscViewerDestroy(&ctx->viewerRho)); in DestroyContext()
1363 PetscCall(VecView(rho, ctx->viewerRho)); in MonitorPoisson()