Problem running the Upwelling test case

Report or discuss software problems and other woes

Moderators: arango, robertson

Post Reply
Message
Author
tarunsingh
Posts: 6
Joined: Mon Feb 20, 2006 10:34 pm
Location: State University of New York at Buffalo

Problem running the Upwelling test case

#1 Unread post by tarunsingh »

Hi, I am a new user of ROMS. I was trying to run the upwelling test case. I get the following errors when i try compiling the model on a linux system with pgf compiler
PGF90-S-0034-Syntax error at or near / (./cppdefs.h: 1)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 2)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 3)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 4)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 5)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 6)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 7)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: )
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 9)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 10)
PGF90-S-0034-Syntax error at or near * (./cppdefs.h: 11)
PGF90-S-0034-Syntax error at or near / (./cppdefs.h: 13)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 14)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 15)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 16)
PGF90-S-0034-Syntax error at or near ** (./cppdefs.h: 17)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 20)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 21)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 22)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 23)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 24)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 25)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 26)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: 27)
PGF90-S-0021-Label field of continuation line is not blank (./cppdefs.h: )
PGF90-F-0008-Error limit exceeded (./cppdefs.h: )
PGF90/any Linux/x86 4.0-2: compilation aborted

I am not quite sure how to correct it :cry: Any ideas ??
Thanks in anticipation
~Tarun

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

#2 Unread post by kate »

The file cppdefs.h starts off with a multi-line C comment. We are expecting this to have been deleted either by cpp, the C preprocessor, or by cpp_clean, a Perl script.

What version of cpp are you using, with what flags? What was the error from cpp_clean? Do you have perl on your system? What version of ROMS?

tarunsingh
Posts: 6
Joined: Mon Feb 20, 2006 10:34 pm
Location: State University of New York at Buffalo

#3 Unread post by tarunsingh »

Hi Kate
Thanks for your reply. Here is the info :

CPP version : cpp (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-54)

CPP FLAGS : -P -traditional -DLINUX

PERL : Yeah I do have PERL on the system. It is v5.8.0 built for i386-linux-thread-multi.

ROMS : I am using ROMS version 2.1 .

I am not quite sure what do you mean by errors from cpp_clean. As such I didn't find any errors other than what I posted on my last post.

Thanks again

~Tarun

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

#4 Unread post by kate »

OK, I checked and cpp_clean isn't trying to take out C comments. The C preprocessor is being counted on to do the job. So, when you type "make", you should get something like:

% make -f Makefile.gfortran
/usr/bin/cpp -P -DLINUX -I/usr/local/pkg/netcdf/current/include -traditional mod_kinds.F > mod_kinds.f90
./cpp_clean mod_kinds.f90
gfortran -c -O mod_kinds.f90

and so on. Look at the file mod_kinds.f90 to see what is there. Mine contains:
MODULE mod_kinds
!
!=======================================================================
! Copyright (c) 2002 ROMS/TOMS Group !
!================================================== Hernan G. Arango ===
!
implicit none
integer, parameter :: i8 = selected_int_kind(8 )
integer, parameter :: c8 = selected_real_kind(6,30) ! 32-bit
integer, parameter :: r4 = selected_real_kind(6,30) ! 32-bit
integer, parameter :: r8 = selected_real_kind(12,300) ! 64-bit
integer, parameter :: r16 = selected_real_kind(15,300) ! 128-bit
END MODULE mod_kinds

tarunsingh
Posts: 6
Joined: Mon Feb 20, 2006 10:34 pm
Location: State University of New York at Buffalo

#5 Unread post by tarunsingh »

Hi Kate
'make' command gives me something like :

/usr/bin/cpp -P -traditional -I/opt/pgisoft/netcdf/include -DLINUX -DI686 -DPGI -IInclude -INonlinear -IDrivers -ISeaIce Nonlinear/analytical.F > analytical.f90
Bin/cpp_clean analytical.f90
/usr/bin/cpp -P -traditional -I/opt/pgisoft/netcdf/include -DLINUX -DI686 -DPGI -IInclude -INonlinear -IDrivers -ISeaIce Nonlinear/exchange_2d.F > exchange_2d.f90
Bin/cpp_clean exchange_2d.f90

and so on..... Looks like my mod_kinds.f90 file is exactly similar to what you have.

Thanks for your response
~Tarun

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

#6 Unread post by arango »

Check your cppdefs.h file. It is possible that you introduced an illegal character when editing or transfering this file. The error occurs in the first line of this file. This is what cpp is telling you in the error message form pgf90.

tarunsingh
Posts: 6
Joined: Mon Feb 20, 2006 10:34 pm
Location: State University of New York at Buffalo

#7 Unread post by tarunsingh »

Thanks Guys !!!
I started fresh ( downloaded the new 2.2 model and tried compiling it ) and have been able to get rid of this problem.

Thanks again for all your support

Post Reply