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