problems in compiling ROMS

Discussion on computers, ROMS installation and compiling

Moderators: arango, robertson

Post Reply
Message
Author
Barbara
Posts: 25
Joined: Thu Sep 14, 2006 4:33 pm
Location: LTO, SCSIO

problems in compiling ROMS

#1 Unread post by Barbara »

Hi All,

when I am trying to compiling the ROMS3.0 on the Linux using pgi, the make version is 3.80, following problem occurs:

cd Build; pgf90 -c -u -Bstatic -fastsse -Mipa=fast -tp k8-64 mod_netcdf.f90
PGF90-S-0087-Non-constant expression where constant expression required (mod_netcdf.f90: 607)
PGF90-S-0087-Non-constant expression where constant expression required (mod_netcdf.f90: 614)
PGF90-S-0087-Non-constant expression where constant expression required (mod_netcdf.f90: 617)
0 inform, 0 warnings, 3 severes, 0 fatal for mod_netcdf
make: *** [Build/mod_netcdf.o] Error 2



And I find the mod_netcdf.f90 looks like this:

MODULE mod_netcdf
!
!svn $Id: mod_netcdf.F 8 2007-02-06 19:00:29Z arango $
!================================================== Hernan G. Arango ===
! Copyright (c) 2002-2007 The ROMS/TOMS Group !
! Licensed under a MIT/X style license !
! See License_ROMS.txt !
!=======================================================================
! !
! This MODULE contains all NetCDF variables definitions. !
! !
! NF_FOUT Output real array variables type. !
! NF_FRST Output real array variables type in restart file. !
! NF_TYPE Output real scalar variables type. !
! !
!=======================================================================
!
USE mod_kinds

implicit none




integer, parameter :: NF_FOUT = nf_double






integer, parameter :: NF_FRST = nf_double


integer, parameter :: NF_TYPE = nf_double




END MODULE mod_netcdf



Anybody knows what the problem is ? Thanks!

User avatar
m.hadfield
Posts: 521
Joined: Tue Jul 01, 2003 4:12 am
Location: NIWA

#2 Unread post by m.hadfield »

Well, off the top of my head, have you set NETCDF_INCDIR correctly? If you didn't the preprocessor should have told you it couldn't find netcdf.inc when processing mod_netcdf.F. Yu might not have noticed that one as it flew past.

Barbara
Posts: 25
Joined: Thu Sep 14, 2006 4:33 pm
Location: LTO, SCSIO

#3 Unread post by Barbara »

:D Thanks for your instruction, I have chosen the wrong netcdf library to be included. :D

Post Reply