Home
last modified time | relevance | path

Searched refs:dmPot (Results 1 – 3 of 3) sorted by relevance

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c136 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()
[all …]
H A Dex4.c184 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()
[all …]
H A Dex3.c77 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()
[all …]