Discussion on computers, ROMS installation and compiling
Moderators: arango , robertson
s.celestino
#1
Unread post
by s.celestino » Wed Jul 26, 2017 12:46 am
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?
kate
Posts: 4091 Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA
#2
Unread post
by kate » Wed Jul 26, 2017 1:30 pm
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
#3
Unread post
by s.celestino » Wed Jul 26, 2017 4:45 pm
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 272 times
kate
Posts: 4091 Joined: Wed Jul 02, 2003 5:29 pm
Location: CFOS/UAF, USA
#4
Unread post
by kate » Wed Jul 26, 2017 7:15 pm
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
#5
Unread post
by s.celestino » Wed Jul 26, 2017 7:23 pm
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
#6
Unread post
by s.celestino » Thu Jul 27, 2017 1:31 am
Nothing changes with the latest package. I get always that error.
Any ideas?
s.celestino
#7
Unread post
by s.celestino » Thu Jul 27, 2017 2:12 am
I compiled netcdf with gfortran and ROMS with mpif90 (with gfortran option also), it can be this the problem?