Hi I am using petsc-3.1-p7. <br><br>My code seems to be behaving strangely during the execution step. <br><br>I am solving a simple least squares problem with the LSQR routine. The options that I am using at the terminal are.:<br>
<br>mpiexec -n 1 ./rect_input -f A2 -vector b2 -ksp_type lsqr -pc_type none -log_summary -ksp_max_it 1038<br><br>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). <br>
<br>But after running the executable twice or thrice, I get the performance summary along with the correct answer. Why is this happening? <br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>