[petsc-users] Strange behavior of -log_summary and final answer

Barry Smith bsmith at mcs.anl.gov
Fri Feb 18 12:30:47 CST 2011



  Run with valgrind http://www.mcs.anl.gov/petsc/petsc-as/documentation/faq.html#valgrind

  Barry



On Feb 18, 2011, at 12:11 PM, Gaurish Telang wrote:

> Hi I am using petsc-3.1-p7. 
> 
> My code seems to be behaving strangely during the execution step. 
> 
> I am solving a simple least squares problem with the LSQR routine. The options that I am using at the terminal are.:
> 
> mpiexec -n 1 ./rect_input -f A2 -vector b2 -ksp_type lsqr -pc_type none -log_summary -ksp_max_it 1038
> 
> Even though I have used the -log_summary flag the performance summary does *not* get displayed on some occasions. The answer also is different from the answer I expect (which I obtain from matlab). 
> 
> But after running the executable twice or thrice, I get the performance summary along with the correct answer. Why is this happening? 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 



More information about the petsc-users mailing list