[petsc-users] Will matrix-free faster than solving linearized equation?

Jed Brown jedbrown at mcs.anl.gov
Fri Sep 13 17:37:07 CDT 2013


Frank <fangxingjun0319 at 163.com> writes:

> Hi,
>
> Currently, I am solving a nonlinear equation with some linearization  
> method. I am thinking to modify it with a nonlinear solver. With PETSc 
> library, I am confident to do it. I just want to ask those who have 
> experiences with nonlinear solver if matrix-free method will be faster.

Your question isn't very clear, but it depends on many things.  Matrices
are good for testing algorithms.  Send -log_summary and convergence
monitors for a solver configuration that works well for your problem.
From that information and a description of your discretization, we can
estimate the potential effect of switching to a matrix-free
implementation.

Don't start out with matrix-free unless you have a lot of experience
with the problem class and relevant methods.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20130913/7bd57576/attachment.pgp>


More information about the petsc-users mailing list