I don't think this is relevant. The mpif90 is a wrapper and needs to be pointed to the proper f90 compiler. By doing so, you specify as the f90 compiler, mpif90 itself, which hasn't been compiled yet.
Now, in case you set these variables afterwards, it is still wrong as there are specific environment variables for each compiler. F90 for .f90 files, F77 for .f77, FC for .f, etc. There is even an OMPI_FC, though you should never need it.
Nick
Hey,
I have not experienced the parallel run of RegCM3 with OpenMPI but as far as mpich2 is concerned, there is need to change the compiler option in Makefile located in "main" folder of RegCM3 pack like and then use it.
FC=ifort (wrong option for parallel run)
FC=mpif90 or mpif77 etc etc.
Cheers:-)
Asif
--
Muhammad ASIF