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 Any ideas ??
Thanks in anticipation
~Tarun
Problem running the Upwelling test case
-
- Posts: 6
- Joined: Mon Feb 20, 2006 10:34 pm
- Location: State University of New York at Buffalo
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?
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?
-
- Posts: 6
- Joined: Mon Feb 20, 2006 10:34 pm
- Location: State University of New York at Buffalo
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
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
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:
% 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
-
- Posts: 6
- Joined: Mon Feb 20, 2006 10:34 pm
- Location: State University of New York at Buffalo
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
'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
-
- Posts: 6
- Joined: Mon Feb 20, 2006 10:34 pm
- Location: State University of New York at Buffalo