Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

How to resolve this error

learning_mode_2004
567 Views
Hi,
I'm using intel_fc_80 copiler to compile fortan programs using ifort command on linux platform.I'm getting the following error.Any pointers to remove these errors would be highly welcome.
fortcom: Error: aababc.f, line 145: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [NMECI]
COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
.........................^
fortcom: Error: aababc.f, line 146: A COMMON block data object must not be an automatic object. [OCCA]
COMMON /BASEOC/ OCCA(NMECI)
Following are the lines(145,146) which are the source of errors
COMMON /XYIJKL/ XY(NMECI,NMECI,NMECI,NMECI)
COMMON /BASEOC/ OCCA(NMECI)
Do i need to make changes to the above lines in order to compile the above two lines without nay errors?I'm sure of making some changes.
0 Kudos
1 Reply
TimP
Honored Contributor III
567 Views
NMECI would have to be specified as a constant (normally in a PARAMETER statement) prior to use in those declarations.
0 Kudos
Reply