Hi all,
I got a problem when I compiled ROMS with gfortran. It said that
cd Build; /share/apps/intel/impi/3.2.0.011/bin64/mpif90 -c -frepack-arrays -O3 -ffast-math -ffree-form -ffree-line-length-none distribute.f90
In file distribute.f90:1991
USE netcdf
1
Fatal Error: File 'netcdf.mod' opened at (1) is not a GFORTRAN module file
make: *** [Build/distribute.o] Error 1
Is this because netcdf was not correctly compiled with gfortran or something else?
Thanks a lot!
Meng
Problem with gfortran compilation
Re: Problem with gfortran compilation
Indeed, you found a netcdf.mod file that was compiled with a different compiler.
Re: Problem with gfortran compilation
hi Kate,kate wrote:Indeed, you found a netcdf.mod file that was compiled with a different compiler.
thanks for your reply. I did compile netcdf with gfortran. I don't know why, but when I download the ROMS again, somehow, it works now.
It is a surprise to me. Afterall, it works~~~^_^