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>
<div><br></div><div><div>[0]PETSC ERROR: PetscOptionsInsertFile() line 485 in src/sys/objects/options.c</div><div>[0]PETSC ERROR: PetscOptionsInsert() line 621 in src/sys/objects/options.c</div><div>[0]PETSC ERROR: PetscInitialize() line 751 in src/sys/objects/pinit.c</div>
<div>PETSC ERROR: Logging has not been enabled.</div><div>You might have forgotten to call PetscInitialize().</div><div>application called MPI_Abort(MPI_COMM_WORLD, 56) - process 0</div></div><div><br></div><div>Can anyone help? Thanx in advance.</div>