Home
last modified time | relevance | path

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

/petsc/src/ts/tutorials/hamiltonian/
H A Dex2.c1710 Vec phi, locPhi, phiFull; // Potential and embedding in mixed problem in ComputeFieldAtParticles_Mixed() local
1751 PetscCall(DMGetGlobalVector(dm, &phiFull)); in ComputeFieldAtParticles_Mixed()
1753 PetscCall(VecSet(phiFull, 0.0)); in ComputeFieldAtParticles_Mixed()
1754 PetscCall(SNESSolve(snes, rhoRhsFull, phiFull)); in ComputeFieldAtParticles_Mixed()
1758 PetscCall(VecISCopy(phiFull, ctx->isPot, SCATTER_REVERSE, phi)); in ComputeFieldAtParticles_Mixed()
1762 PetscCall(DMGlobalToLocalBegin(dm, phiFull, INSERT_VALUES, locPhi)); in ComputeFieldAtParticles_Mixed()
1763 PetscCall(DMGlobalToLocalEnd(dm, phiFull, INSERT_VALUES, locPhi)); in ComputeFieldAtParticles_Mixed()
1764 PetscCall(DMRestoreGlobalVector(dm, &phiFull)); in ComputeFieldAtParticles_Mixed()
H A Dex4.c2314 Vec phi, locPhi, phiFull; // Potential and embedding in mixed problem in ComputeFieldAtParticles_Mixed() local
2356 PetscCall(DMGetGlobalVector(dm, &phiFull)); in ComputeFieldAtParticles_Mixed()
2358 PetscCall(VecSet(phiFull, 0.0)); in ComputeFieldAtParticles_Mixed()
2359 PetscCall(SNESSolve(snes, rhoRhsFull, phiFull)); in ComputeFieldAtParticles_Mixed()
2363 PetscCall(VecISCopy(phiFull, ctx->isPot, SCATTER_REVERSE, phi)); in ComputeFieldAtParticles_Mixed()
2367 PetscCall(DMGlobalToLocalBegin(dm, phiFull, INSERT_VALUES, locPhi)); in ComputeFieldAtParticles_Mixed()
2368 PetscCall(DMGlobalToLocalEnd(dm, phiFull, INSERT_VALUES, locPhi)); in ComputeFieldAtParticles_Mixed()
2369 PetscCall(DMRestoreGlobalVector(dm, &phiFull)); in ComputeFieldAtParticles_Mixed()