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 &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
Base class for output streams.