Home
last modified time | relevance | path

Searched refs:rhoRhsFull (Results 1 – 2 of 2) sorted by relevance

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c1708 …Vec rhoRhs, rhoRhsFull; // Weak charge density, \int phi_i rho, and embedding in mixed pr… in ComputeFieldAtParticles_Mixed() local
1723 PetscCall(DMGetGlobalVector(dm, &rhoRhsFull)); in ComputeFieldAtParticles_Mixed()
1724 PetscCall(PetscObjectSetName((PetscObject)rhoRhsFull, "Weak charge density")); in ComputeFieldAtParticles_Mixed()
1742 PetscCall(VecISCopy(rhoRhsFull, ctx->isPot, SCATTER_FORWARD, rhoRhs)); in ComputeFieldAtParticles_Mixed()
1746 PetscCall(VecViewFromOptions(rhoRhsFull, NULL, "-rho_full_view")); in ComputeFieldAtParticles_Mixed()
1754 PetscCall(SNESSolve(snes, rhoRhsFull, phiFull)); in ComputeFieldAtParticles_Mixed()
1755 PetscCall(DMRestoreGlobalVector(dm, &rhoRhsFull)); in ComputeFieldAtParticles_Mixed()
H A Dex4.c2312 …Vec rhoRhs, rhoRhsFull; // Weak charge density, \int phi_i rho, and embedding in mixed pr… in ComputeFieldAtParticles_Mixed() local
2328 PetscCall(DMGetGlobalVector(dm, &rhoRhsFull)); in ComputeFieldAtParticles_Mixed()
2329 PetscCall(PetscObjectSetName((PetscObject)rhoRhsFull, "Weak charge density")); in ComputeFieldAtParticles_Mixed()
2347 PetscCall(VecISCopy(rhoRhsFull, ctx->isPot, SCATTER_FORWARD, rhoRhs)); in ComputeFieldAtParticles_Mixed()
2351 PetscCall(VecViewFromOptions(rhoRhsFull, NULL, "-rho_full_view")); in ComputeFieldAtParticles_Mixed()
2359 PetscCall(SNESSolve(snes, rhoRhsFull, phiFull)); in ComputeFieldAtParticles_Mixed()
2360 PetscCall(DMRestoreGlobalVector(dm, &rhoRhsFull)); in ComputeFieldAtParticles_Mixed()