Lines Matching refs:dmPot

184   DM           dmPot;        // The DM for potential  member
276 options->dmPot = NULL; in ProcessOptions()
443 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in SetupContext()
445 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in SetupContext()
449 PetscCall(DMGetDimension(ctx->dmPot, &dim)); in SetupContext()
451 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
454 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
464 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
466 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext()
473 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in SetupContext()
475 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in SetupContext()
788 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorEField()
789 PetscCall(DMGetDS(ctx->dmPot, &ds)); in MonitorEField()
791 PetscCall(DMPlexComputeIntegralFEM(ctx->dmPot, phi, &intESq, ctx)); in MonitorEField()
792 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorEField()
1361 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in MonitorPoisson()
1362 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson()
1372 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in MonitorPoisson()
1373 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson()
1375 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorPoisson()
1377 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in MonitorPoisson()
1585 PetscCall(DMCreateSubDM(dm, 1, &potential, &ctx->isPot, &ctx->dmPot)); in CreatePoisson()
1587 ctx->dmPot = dm; in CreatePoisson()
1588 PetscCall(PetscObjectReference((PetscObject)ctx->dmPot)); in CreatePoisson()
1590 PetscCall(DMCreateMassMatrix(ctx->dmPot, ctx->dmPot, &ctx->M)); in CreatePoisson()
2207 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
2227 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Primal()
2230 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
2239 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Primal()
2326 PetscCall(DMGetGlobalVector(ctx->dmPot, &rhoRhs)); in ComputeFieldAtParticles_Mixed()
2330 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Mixed()
2352 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rho", &rho)); in ComputeFieldAtParticles_Mixed()
2353 PetscCall(DMRestoreGlobalVector(ctx->dmPot, &rhoRhs)); in ComputeFieldAtParticles_Mixed()
2357 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Mixed()
2364 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in ComputeFieldAtParticles_Mixed()
2449 PetscCall(DMCreateMassMatrix(sw, ctx->dmPot, &M_p)); in ComputeFieldAtParticles()
2655 PetscCall(DMPlexGetHeightStratum(ctx->dmPot, 0, &cStart, &cEnd)); in RHSObjectiveF()
2657 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "phi", &phi)); in RHSObjectiveF()
2659 PetscCall(computeFieldEnergy(ctx->dmPot, phi, F)); in RHSObjectiveF()
2660 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "phi", &phi)); in RHSObjectiveF()
3068 PetscCall(DMDestroy(&ctx.dmPot)); in main()