When i use G95 and MPICH2-1.0.7 to compile ROMS, i get the following error.
cd /root/roms/Projects/Upwelling/Build; g95 -c -fno-second-underscore -O2 -ffast-math -ffree-form mod_strings.f90
cd /root/roms/Projects/Upwelling/Build; g95 -c -fno-second-underscore -O2 -ffast-math mod_parallel.f90
Error: Can't open included file 'mpif.h'
In file mod_parallel.f90:76
integer, parameter :: MP_FLOAT = MPI_DOUBLE_PRECISION
1
Error: Symbol 'mpi_double_precision' at (1) has no IMPLICIT type
make: *** [/root/roms/Projects/Upwelling/Build/mod_parallel.o]
My installed MPI is ok, and the example with MPI can be run successfully. Does anybody else who run the ROMS with G95 and MPICH2 successfully, tell me why ?
Error of compling ROMS 3.0 with G95 and MPI
If you don't have USE_MPI set to on, then USE_MPIF90 is not going to do anything either way. You are saying you can compile the serial code but not the parallel code? What goes wrong with USE_MPI=on , USE_MPI90=on and FORT=ifort? If it's the same error as above, then you need to reinstall MPICH for the ifort.