Lines Matching refs:rhohat
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()
854 PetscCall(VecSetValue(rhohat, 0, 0., INSERT_VALUES)); // Remove large DC component in MonitorPoisson()
855 PetscCall(VecView(rhohat, ctx->viewerRhoHat)); in MonitorPoisson()
857 PetscCall(DMRestoreNamedGlobalVector(ctx->dmPot, "rhohat", &rhohat)); in MonitorPoisson()