Domenico,

    Please take a look at src/ksp/ksp/impls/cg/cg.c it contains comments at the 
top and in within the file on how one can copy the cg implementation and 
organize it for another Krylov method.

   Barry

   src/ksp/pc/impls/jacobi.c does a similar thing for preconditioners

> On Dec 14, 2014, at 1:53 PM, domenico lahaye <[email protected]> 
> wrote:
> 
> Dear PETSc developers, 
> 
>   Could you pls. formulate guidelines on how to implement 
> a new (to PETSc) Krylov subspace method (such as e.g. SQMR 
> or IDR) in PETSc or refer me to such guidelines? 
> 
>   Thanks, Domenico. 
>  
> 

Reply via email to