Searched refs:rhohat (Results 1 – 2 of 2) sorted by relevance
| /petsc/src/ts/tutorials/hamiltonian/ |
| H A D | ex2.c | 339 Vec rho, rhohat, phi; in SetupContext() local 366 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 367 PetscCall(VecGetSize(rhohat, &N)); in SetupContext() 369 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 379 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 380 PetscCall(PetscObjectSetName((PetscObject)rhohat, "charge_density_ft")); in SetupContext() 381 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 843 Vec rho, rhohat, phi; in MonitorPoisson() local 846 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson() 853 PetscCall(VecISCopy(ctx->fftY, ctx->fftReal, SCATTER_REVERSE, rhohat)); in MonitorPoisson() [all …]
|
| H A D | ex4.c | 424 Vec rho, rhohat, phi; in SetupContext() local 451 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 452 PetscCall(VecGetSize(rhohat, &N)); in SetupContext() 454 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 464 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 465 PetscCall(PetscObjectSetName((PetscObject)rhohat, "charge_density_ft")); in SetupContext() 466 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in SetupContext() 1359 Vec rho, rhohat, phi; in MonitorPoisson() local 1362 PetscCall(DMGetNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson() 1369 PetscCall(VecISCopy(ctx->fftY, ctx->fftReal, SCATTER_REVERSE, rhohat)); in MonitorPoisson() [all …]
|