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

Errors when running Old Fortran codes by Intel Parallel Studio 2018 or 2022

Siraj_Jalali
Beginner
381 Views

I am getting errors when tried to run old 2014 Fortran codes by using 2022 Intel Fortran Parallel Studio compiler:

userLogic.for(823): warning #6717: This name has not been given an explicit type. [INTCRY]
call splitString(fileName, UCA(intcry(submodelName,100000)))
---------------------------------------^
userLogic.for(863): warning #6717: This name has not been given an explicit type. [INTCRY]
UCA(intcry(submodelName,status))=crew(Person)%status
-----------^
userLogic.for(896): warning #6717: This name has not been given an explicit type. [INTCRY]
crew(Person)%cutfat =UCA(intcry(submodelName,cutfat))
-------------------------------------^
userLogic.for(927): warning #6717: This name has not been given an explicit type. [TCABP]
crew(Person)%asinda(213) = tcabp !TCD 8/16/2013
----------------------------------^
userLogic.for(1024): error #6405: The same named entity from different modules and/or program units cannot be referenced. [PI]
use variablesa, only: ts, tc, twall, pi, rb, xlen=>xl, ctof
--------------------------------------------^
userLogic.for(1031): warning #6717: This name has not been given an explicit type. [NGARM]
CALL SETGARMENT( NGARM )
--------------------------------^

All errors are like 'not given an explicit type'.  How can I fix this problem?

0 Kudos
1 Reply
mecej4
Honored Contributor III
354 Views

Of the numerous messages that you reported, only one is an error message. The others are warnings, which you can ignore, suppress or turn into errors by using suitable compiler options.

The error message tells you that PI has been declared in more than one module that is USEd in the current source file. This error would have been flagged as such even by an older version of the compiler. You need to fix this error.

0 Kudos
Reply