[petsc-users] How to pass the parameters for KSP

Barry Smith bsmith at mcs.anl.gov
Sun Sep 19 21:49:47 CDT 2010


 What arguments? Do you mean the right hand side x and the matrix? Or do you mean parameters like the relative tolerance in convergence? 

  See src/ksp/ksp/examples/tutorials/ex1.c for a simple example.

   Barry

On Sep 19, 2010, at 8:05 PM, vedaprakash subramanian wrote:

> I am converting a MATLAB function into a KSP solver. I am doing it similar to BiCGStab. But I wanted to know how to pass the arguments of the function into KSP solver.
> 
> Thanks,
> Vedaprakash



More information about the petsc-users mailing list