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

error messages from compiler?

Ralph_Nelson
Novice
2,218 Views
I'm continuing to update very old F77 code. Get the following error meesages:
E:\\ralph\\Macro3d\\Macro3d+CLAMS\\Source Files\\xersve.f(68): error #6221: The assumed-size array must be a dummy argument. [NERTAB]
 integer NERTAB(*), LEVTAB(*), KOUNT(*)
--------------^
E:\\ralph\\Macro3d\\Macro3d+CLAMS\\Source Files\\xersve.f(68): error #6221: The assumed-size array must be a dummy argument. [LEVTAB]
 integer NERTAB(*), LEVTAB(*), KOUNT(*)
-------------------------^
E:\\ralph\\Macro3d\\Macro3d+CLAMS\\Source Files\\xersve.f(68): error #6221: The assumed-size array must be a dummy argument. [KOUNT]
 integer NERTAB(*), LEVTAB(*), KOUNT(*)
------------------------------------^
compilation aborted for E:\\ralph\\Macro3d\\Macro3d+CLAMS\\Source Files\\xersve.f (code 1)


From the following code:
    integer NERTAB(*), LEVTAB(*), KOUNT(*)
integer lentab
PARAMETER (LENTAB=10)
INTEGER LUN(5)
CHARACTER*(*) LIBRAR, SUBROU, MESSG
CHARACTER*8 LIBTAB(LENTAB), SUBTAB(LENTAB), LIB, SUB
CHARACTER*20 MESTAB(LENTAB), MES
SAVE LIBTAB, SUBTAB, MESTAB, NERTAB, LEVTAB, KOUNT, KOUNTX, NMSG


Looks to me like the arraries netrab, levtab and kount have what I call dummy arguements.

Thanks.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
2,218 Views
Dummy argument means that it is an argument to a subroutine or function. Do these arrays appear in the argument list for this subroutine or function? You didn't show the most important line.
0 Kudos
Ralph_Nelson
Novice
2,218 Views
Oppppsss, sorry bout that

*DECK XERSVE
SUBROUTINE XERSVE(LIBRAR, SUBROU, MESSG, KFLAG, NERR, LEVEL,
+ ICOUNT)
implicit none

but your question told me enough to tell me what to change. I changed the old
integer NERTAB(L*), LEVTAB(*), KOUNT(*)

to
integer NERTAB(LENTAB), LEVTAB(LENTAB), KOUNT(LENTAB)


and the compiler is happy ..... for now. Till I fix something else.


Thanks Steve.


0 Kudos
Reply