Ocean Modeling Discussion

ROMS/TOMS

Search for:
It is currently Mon Jul 22, 2019 6:25 pm




Post new topic Reply to topic  [ 3 posts ] 

All times are UTC

Author Message
PostPosted: Fri Dec 08, 2006 6:52 am 
Offline

Joined: Fri Oct 21, 2005 2:42 pm
Posts: 7
Location: Australian Institute of Marine Science
Hi, have problem when I try to compile mod_boundary.f90 from roms-2.2 with latest corrections applied. Compiler output is listed below

f95 -c -u -U -xarch=v9 -O3 mod_boundary.f90

MODULE mod_boundary
^
"mod_boundary.f90", Line = 1, Column = 14: ERROR: The compiler has detected errors in module "mod_boundary". No module information file will be created for this module.

SUBROUTINE initialize_boundary (ng, tile)
^
"mod_boundary.f90", Line = 385, Column = 43: ERROR: IMPLICIT NONE is specified in the host scope, therefore an explicit type must be specified for data object "tile".

integer, intent(in) :: ng, tile
^
"mod_boundary.f90", Line = 403, Column = 34: ERROR: "tile" has the INTENT attribute, therefore it must be a dummy argument.

f90comp: 517 SOURCE LINES
f90comp: 3 ERRORS, 0 WARNINGS, 0 OTHER MESSAGES, 0 ANSI
make: *** [mod_boundary.o] Error 1

> uname -a
SunOS octopod 5.9 Generic_118558-10 sun4u sparc SUNW,Sun-Fire-880
> f95 -V
f95: Sun Fortran 95 8.2 2005/10/13

What is needed to fix this?
Thanks,
Simon.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 11, 2006 5:34 pm 
Offline
Site Admin
User avatar

Joined: Wed Feb 26, 2003 4:41 pm
Posts: 1079
Location: IMCS, Rutgers University
I don't know what is the problem here. Yes, tile is a dummy variable of INTENT(in). This variable has been declared correctly. I compiled in our old SunOS computer without problems. I wonder if this is a compiler bug :?:


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Mon Dec 11, 2006 7:19 pm 
Offline
User avatar

Joined: Wed Jul 02, 2003 5:29 pm
Posts: 3633
Location: IMS/UAF, USA
Yes, it is a compiler bug and will go away if you remove the -U compiler option. It has been reported to the vendor (at least for their Linux version of it).


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group