16#include <PCShell_Jacobi.h>
31PetscErrorCode PCShell_Jacobi::setUpPC_(PC pc, KSP ksp, Mat pmat, Vec x)
35 VecDuplicate(x, &diag_);
36 MatGetDiagonal(pmat, diag_);
41PetscErrorCode PCShell_Jacobi::computePC_(PC pc, Vec x, Vec y)
43 VecPointwiseMult(y, x, diag_);
47PetscErrorCode PCShell_Jacobi::destroyPC_(PC pc)
53PetscErrorCode PCShell_Jacobi::preSolve_(PC pc, KSP ksp, Vec x, Vec y)
58PetscErrorCode PCShell_Jacobi::postSolve_(PC pc, KSP ksp, Vec x, Vec y)
Class defining operators and methods for all reading operation in an input flow (file,...
virtual Entree & readOn(Entree &)
Lecture d'un Objet_U sur un flot d'entree Methode a surcharger.
virtual Sortie & printOn(Sortie &) const
Ecriture de l'objet sur un flot de sortie Methode a surcharger.
Classe de base des flux de sortie.