Hi everyone,
I'm installing ROMS on a cluster. I already installed NetCDF4, NetCDF-fortran, HDF5, zilb. But when I compile ROMS, there is an error says
"Fatal Error: File 'netcdf.mod' opened at (1) is not a GFORTRAN module file".
I know I'm using gfortran on the cluster.
Also I go to the directory /opt/netcdf4/include to check the status of netcdf.mod
File: `netcdf.mod'
Size: 291243 Blocks: 576 IO Block: 4096 regular file
Device: fd00h/64768d Inode: 7209892 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2018-03-29 21:49:47.797721930 -0400
Modify: 2015-10-19 18:13:08.920376884 -0400
Change: 2015-10-19 18:13:08.920376884 -0400
Does anyone know what is going on?
Error when compiling the Upwelling case in build.bash
Re: Error when compiling the Upwelling case in build.bash
The file could be from a different version of gfortran. You need one compiled with the same version of the compiler. One way to achieve that is to compile it yourself from sources - you only need to compile the netcdf-fortran.