I am trying to install an OpenMPI on my Ubuntu (14.04) machine, and I thought that I had succeeded, because I can run codes with mpirun, but re
I managed to solve it. It was quite silly, to be honest. For some reason I was not using the right OpenMPI installation (I have no idea which it was using). I recompiled using the right mpif90 and run it using the right mpirun and now I get the expected result.
Sorry for the confusion, but I am quite new to this. And thank you for the help!