Hi all,
Compiling and running this code<https://code.google.com/p/daneelrepo/source/browse/eth_question/eth.c>that builds a petsc matrix gives different results when run with different number of processors. The code is large and complex, so I have created a smaller program with the same loop structure here. <http://pastebin.ca/2457643> Compile it and run it with "mpirun -np $N ./test -draw_pause -1" gives different results for different values of N even though it's not supposed to. Here is a sample output <http://i42.tinypic.com/2s16ccw.jpg> for N=1,2,3,4 from left to right. Can anyone guide me as to what I'm doing wrong? Are any of the petssc routines used not parallelizable? Thanks in advance, Regards. -- --- *Analabha Roy* C.S.I.R <http://www.csir.res.in> Senior Research Associate<http://csirhrdg.res.in/poolsra.htm> Saha Institute of Nuclear Physics <http://www.saha.ac.in> Section 1, Block AF Bidhannagar, Calcutta 700064 India *Emails*: [email protected], [email protected] *Webpage*: http://www.ph.utexas.edu/~daneel/
