| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Dear Fortran users
I am compiling a 10,000 line F90 code with Absoft and have run into some problems. XLF works fine and handles the makefile without any errors.
The compilation involves preprocessing .F file with #include ***.h statements (using cpp), then compiles the .f files. However, the variables defined in the *.h files are not visible to the compiler; it treats any variables pre-defined in the *.h files as local variables in the *.f files and wants them to be re-declared. I even went as far as copying mpif.h, for example,, into multiple include paths to ensure that Absoft sees the file. Are there any flags I can use to overcome this problem?
Error messagges:
***********
REAL :: tstart,tend
^
cf90-1643 f90fe: WARNING DIST_GLOBAL, File = dist_global.f, Line = 32, Column = 16
local variable TSTART never referenced.
***********
& MAPS,JMAP(IMAP),KMAP(IMAP),LMAP(IMAP),
^
cf90-232 f90fe: ERROR DRNBDY, File = drnbdy.f, Line = 260, Column = 34
IMPLICIT NONE is specified in the local scope, therefore an explicit type must be specified for function "JMAP".
***********_______________________________________________
F90 flags:
***********
-s -YEXT_NAMES=LCS -YEXT_SFX=_ -YDEALLOC=CACHE -altivec
***********
Thanks
Dr. Johannes N. Theron
...
| References: | |
| >Local variables (From: "Jan Theron" <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.