[petsc-users] [KSP] Different behaviour between
Norihiro Watanabe
norihiro.w at gmail.com
Mon Jan 6 12:06:36 CST 2014
Hi,
I got a strange problem with PETSc 3.4 that linear equations assembled in
our FEM codes cannot be solved within 5000 iterations, whereas linear
equations loaded from binary files can be solved with only 24 iterations
using ksp/examples/tutorials/ex10.c. The binary files were created by the
FEM codes using MatView() and VecView() right before calling KSPSolve().
Linear solver types are -ksp_type bcgs -pc_type bjacobi. I set the same
tolerance to both programs.
As you can see from attached log files, both programs calculate the same
"true resid norm" at the beginning but different "preconditioned resid
norm". Does it mean both programs are actually solving the same problem but
somewhat with different preconditoner? It would be so helpful if you have
any clue for this problem.
just tell you background of this: Currently I'm facing a convergence
problem in linear solvers for solving transient heat transport problems
using FEM. At early time steps, PETSc converges quickly (<20 iterations).
Later, iteration numbers increase as time steps increase (>5000 after 19
time steps). I'm in the middle of checking where is a problem for the slow
convergence. Because I don't get such slow convergence with other linear
solvers (BiCGSTAB+Jacobi), I suspect the FEM codes are missing some PETSc
functions or options to be used. As I wrote above, if I use ex10.c with the
binary files, the convergence problem is solved, which means something
going wrong in the FEM codes.
Thank you in advance,
Nori
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140106/e0ec2fc5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ex10.log
Type: text/x-log
Size: 16937 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140106/e0ec2fc5/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fem.log
Type: text/x-log
Size: 16409 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140106/e0ec2fc5/attachment-0003.bin>
More information about the petsc-users
mailing list