Problem with gfortran compilation

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
ac412
Posts: 9
Joined: Mon Sep 30, 2013 4:28 pm
Location: Tongji University

Problem with gfortran compilation

#1 Unread post by ac412 »

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

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

Re: Problem with gfortran compilation

#2 Unread post by kate »

Indeed, you found a netcdf.mod file that was compiled with a different compiler.

ac412
Posts: 9
Joined: Mon Sep 30, 2013 4:28 pm
Location: Tongji University

Re: Problem with gfortran compilation

#3 Unread post by ac412 »

kate wrote:Indeed, you found a netcdf.mod file that was compiled with a different compiler.
hi Kate,
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~~~^_^

Post Reply