matrix free for linear solver

Matthew Knepley knepley at
Mon Mar 3 11:07:32 CST 2008

On Mon, Mar 3, 2008 at 11:05 AM, li pan <li76pan at> wrote:
> Dear all,
>  If I want to solve a linear equation in matrix free
>  scheme, how is the command line argument? I only know
>  for nonlinear solver it is _snes_mf

What do you mean here? How do you have linear equations without
a matrix? If you mean that you would only like to specify the action
of the operator, you should use MATSHELL.


>  thanx
>  pan
>       ____________________________________________________________________________________
>  Looking for last minute shopping deals?
>  Find them fast with Yahoo! Search.

What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener

More information about the petsc-users mailing list