On Sat, Oct 13, 2012 at 3:19 PM, Matthew Knepley <span dir="ltr"><<a href="mailto:knepley@gmail.com" target="_blank">knepley@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On Sat, Oct 13, 2012 at 3:17 PM, George Mathew <span dir="ltr"><<a href="mailto:gmnnus@gmail.com" target="_blank">gmnnus@gmail.com</a>></span> wrote:<br></div><div class="gmail_quote"><div class="im">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have petsc 3.3 and mpich2 version 1.4.1p1 installed.<div>When I run the example ex2.c code in the petsc user manual, it runs one one machine format. But, if I chose to run on multiple nodes, it gives error.</div><div>The example is the file ${PETSC}/src/ksp/ksp/examples/tutorials/ex2.c.</div>


<div>I compiled it and when run using the following command, it works.</div><div>mpiexec -f machinefile -n 1 ./ex2 </div><div>But, if I run it using the command</div><div>mpiexec -f machinefile -n 2 ./ex2</div><div>I get the following error.</div>

</blockquote><div><br></div></div><div>It is very likely that you are running the code with the wrong mpiexec (from another MPI installation).</div><div>I cannot tell which MPI you used with configure.log.</div></div></blockquote>
<div><br></div><div>Can you also try<br><br>1. Run multiple processes on your local machine<br><br>2. Run with -skip_petscrc</div></div>