New ROMS version, new computer, new trouble

Bug reports, work arounds and fixes

Moderators: arango, robertson

Post Reply
Message
Author
CBian
Posts: 39
Joined: Mon Dec 28, 2009 4:01 pm
Location: Ocean University of China

New ROMS version, new computer, new trouble

#1 Unread post by CBian »

Hi, ROMS users,

I change my server to a NEC SX-9 computer recently and download the newest version of ROMS (revision of 513).
When I compile the code, there is error:

f90: distribute.f90, distribute_mod: There are 8 errors and 28 warnings.
sxf90 fatal : /SX/usr/lib/f90com command error : 1
make: *** [/gfs/home/smomw161/my_application/Build/distribute.o] Error 1


so I looked into distribute.f90 and find the lines which have errors :

f90: error(914): distribute.f90, line 1971:
Module name " " does not match with file
name in module information file.

! Note: We cannot use mod_netcdf here because of cyclic dependency. !
! !
!***********************************************************************
!
USE mod_param
USE mod_parallel
USE mod_iounits
USE mod_ncparam
USE netcdf ! this is line 1971
USE mod_scalars
!

By the way,I used Linux-necsx.mk to compile these code.
So, I don't know this problem is caused by my new server or my configuration. Can somebody give me some advice? Thanks a lot!

User avatar
arango
Site Admin
Posts: 1355
Joined: Wed Feb 26, 2003 4:41 pm
Location: DMCS, Rutgers University
Contact:

Re: New ROMS version, new computer, new trouble

#2 Unread post by arango »

The comment in routines mp_ncread and mp_ncwrite in file distribute.F are for ROMS module mod_netcdf.F and not for the original UNIDATA NetCDF library module. Notice that the usage is different:

Code: Select all

     USE mod_netcdf                     ! ROMS module that interfaces with NetCDF library
     USE netcdf                         ! Original UNIDATA NetCDF library module
The ROMS interface is intended to reduce the verbosity of the NetCDF library and allow parallel I/O.

If you look carefully at the error, there are problems loading netcdf.mod during compilation. This can be due to several reason like the directory for the library was not spelled correctly, inconsistency between the compiler used in ROMS and the one used to build the NetCDF library in the NEC, incorrect build of the NetCDF library, and so on. You need to check with your computer administrator to see if the NetCDF library was installed correctly on your NEC computer.

This is not a ROMS bug :!:

Post Reply