Strange error in ROMS compiling

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
s.celestino

Strange error in ROMS compiling

#1 Unread post by s.celestino »

Hi everyone,

I'm trying to install ROMS on a parallel cluster. I need to install NETCDF in my home directory, so I installed the netcdf-4.1.3 (with zlib and hdf5) and then netcdf-fortran-4.2. Everything went well. But after configuring ROMS I get this error in the build.bash script in the WC13 test case.

Code: Select all

distribute.f90:2951.10:

      USE netcdf
          1
Fatal Error: File 'netcdf.mod' opened at (1) is not a GNU Fortran module file
It seems netcdf.mod is not compiled with the fortran compiler. I have used gfortran to compile both netcdf and ROMS.

Any ideas?

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

Re: Strange error in ROMS compiling

#2 Unread post by kate »

You should be able to check the compile logs to see if it is the same netcdf.mod that you just compiled (probably not).

s.celestino

Re: Strange error in ROMS compiling

#3 Unread post by s.celestino »

kate wrote:You should be able to check the compile logs to see if it is the same netcdf.mod that you just compiled (probably not).
Thanks for the answer. Here you will find my log file. But I'm sure it is the newest netcdf.mod (all the make check during the netcdf compiling went well).
Attachments
log.txt
(514.22 KiB) Downloaded 245 times

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

Re: Strange error in ROMS compiling

#4 Unread post by kate »

What is the date on: /home/simone/netcdf/include/netcdf.mod?
Did you recently build netcdf-fortran as well? It is now a separate package.

s.celestino

Re: Strange error in ROMS compiling

#5 Unread post by s.celestino »

kate wrote:What is the date on: /home/simone/netcdf/include/netcdf.mod?
Did you recently build netcdf-fortran as well? It is now a separate package.
Today date.

Code: Select all

$ ls -l netcdf.mod
-rw-r--r-- 1 simone users 21984 Jul 26 06:20 netcdf.mod
I compiled everything togheter. And yes I compiled also netcdf-fortran. This is the version for all the packages I have used:

Code: Select all

zlib-1.2.8.tar.gz
hdf5-1.8.13.tar.gz
netcdf-4.1.3.tar.gz
netcdf-fortran-4.2.tar.gz
Now I'm downloading all the latest software version to verify if there is some version problem. Now I'm testing:

Code: Select all

zlib-1.2.11.tar.gz
hdf5-1.10.1.tar.gz
netcdf-4.4.1.1.tar.gz
netcdf-fortran-4.4.4.tar.gz

s.celestino

Re: Strange error in ROMS compiling

#6 Unread post by s.celestino »

Nothing changes with the latest package. I get always that error.

Any ideas?

s.celestino

Re: Strange error in ROMS compiling

#7 Unread post by s.celestino »

I compiled netcdf with gfortran and ROMS with mpif90 (with gfortran option also), it can be this the problem?

Post Reply