Lines Matching refs:dmPot
136 DM dmPot; // The DM for potential member
202 options->dmPot = NULL; in ProcessOptions()
358 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in SetupContext()
360 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in SetupContext()
364 PetscCall(DMGetDimension(ctx->dmPot, &dim)); in SetupContext()
366 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
369 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
379 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
381 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
388 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in SetupContext()
390 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in SetupContext()
552 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorEField()
553 PetscCall(DMGetDS(ctx->dmPot, &ds)); in MonitorEField()
555 PetscCall(DMPlexComputeIntegralFEM(ctx->dmPot, phi, &intESq, ctx)); in MonitorEField()
556 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorEField()
845 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in MonitorPoisson()
846 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson()
856 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in MonitorPoisson()
857 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson()
859 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorPoisson()
861 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorPoisson()
1075 PetscCall(DMCreateSubDM(dm, 1, &potential, &ctx->isPot, &ctx->dmPot)); in CreatePoisson()
1077 ctx->dmPot = dm; in CreatePoisson()
1078 PetscCall(PetscObjectReference((PetscObject)ctx->dmPot)); in CreatePoisson()
1080 PetscCall(DMCreateMassMatrix(ctx->dmPot, ctx->dmPot, &ctx->M)); in CreatePoisson()
1583 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
1626 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
1629 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
1638 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
1721 PetscCall(DMGetGlobalVector(ctx->dmPot, &rhoRhs)); in ComputeFieldAtParticles_Mixed()
1725 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Mixed()
1747 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Mixed()
1748 PetscCall(DMRestoreGlobalVector(ctx->dmPot, &rhoRhs)); in ComputeFieldAtParticles_Mixed()
1752 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Mixed()
1759 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Mixed()
1844 PetscCall(DMCreateMassMatrix(sw, ctx->dmPot, &M_p)); in ComputeFieldAtParticles()
2050 PetscCall(DMPlexGetHeightStratum(ctx->dmPot, 0, &cStart, &cEnd)); in RHSObjectiveF()
2052 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in RHSObjectiveF()
2054 PetscCall(computeFieldEnergy(ctx->dmPot, phi, F)); in RHSObjectiveF()
2055 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in RHSObjectiveF()
2444 PetscCall(DMDestroy(&ctx.dmPot)); in main()