Lines Matching refs:dmPot
77 DM dmPot; // The DM for potential member
116 options->dmPot = NULL; in ProcessOptions()
268 PetscCall(DMGetNamedGlobalVector(user->dmPot, "phi", &phi)); in MonitorEField()
269 PetscCall(DMGetDS(user->dmPot, &ds)); in MonitorEField()
271 PetscCall(DMPlexComputeIntegralFEM(user->dmPot, phi, &intESq, user)); in MonitorEField()
272 PetscCall(DMRestoreNamedGlobalVector(user->dmPot, "phi", &phi)); in MonitorEField()
912 user->dmPot = dm; in CreatePoisson()
913 PetscCall(PetscObjectReference((PetscObject)user->dmPot)); in CreatePoisson()
915 PetscCall(DMCreateMassMatrix(user->dmPot, user->dmPot, &user->M)); in CreatePoisson()
999 PetscCall(DMGetNamedGlobalVector(user->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
1041 PetscCall(DMRestoreNamedGlobalVector(user->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
1044 PetscCall(DMGetNamedGlobalVector(user->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
1053 PetscCall(DMRestoreNamedGlobalVector(user->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
1134 PetscCall(DMCreateMassMatrix(sw, user->dmPot, &M_p)); in ComputeFieldAtParticles()
1326 PetscCall(DMPlexGetHeightStratum(user->dmPot, 0, &cStart, &cEnd)); in RHSObjectiveF()
1328 PetscCall(DMGetNamedGlobalVector(user->dmPot, "phi", &phi)); in RHSObjectiveF()
1330 PetscCall(computeFieldEnergy(user->dmPot, phi, F)); in RHSObjectiveF()
1331 PetscCall(DMRestoreNamedGlobalVector(user->dmPot, "phi", &phi)); in RHSObjectiveF()
1695 PetscCall(DMDestroy(&user.dmPot)); in main()