Error when compiling the Upwelling case in build.bash

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
han
Posts: 13
Joined: Thu Mar 29, 2018 5:03 pm
Location: Stony Brook University

Error when compiling the Upwelling case in build.bash

#1 Unread post by han »

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?

User avatar
kate
Posts: 4091
Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA

Re: Error when compiling the Upwelling case in build.bash

#2 Unread post by kate »

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.

Post Reply