Topic: ABout MPI in Simply fortran

I can't run the example in the file when i already download the MPI package.
it says undefined reference to 'mpi_init' etc...

Re: ABout MPI in Simply fortran

Make sure you have the following in the Linker box under Compiler Flags in Project Options:

-lmpif90 -lmsmpi
Jeff Armstrong
Approximatrix, LLC

Re: ABout MPI in Simply fortran

thank you!!

Re: ABout MPI in Simply fortran

another question how to ask for more processors, when i run the code it shows me it has only one processor but it does have more. thank you!

Re: ABout MPI in Simply fortran

You need to run it via the mpiexec command.  It should be on your path after installing the package.  The command would be:

mpiexec -n 4 target.exe

to launch 4 images of your project's process (assuming the executable is target.exe).

Jeff Armstrong
Approximatrix, LLC