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

This name has already been assigned a data type

jose_velasco
Beginner
3,350 Views
Hi everybody,

I'm trying to compile SMOKE v2.3 and I obtain the following error message:

ifort -O2 -save -zero -extend_source -nbs -W0 -I/home/jose.velasco/SMOKE_v2.3/subsys/edss_tools/src/inc -I/home/jose.velasco/SMOKE_v2.3/subsys/ioapi_includes -I/home/jose.velasco/SMOKE_v2.3/subsys/edss_tools/src/modules/Linux2_x86ifc -I/home/jose.velasco/SMOKE_v2.3/subsys/filesetapi -c -o dscm3grd.o dscm3grd.f
fortcom: Error: dscm3grd.f, line 87: This name has already been assigned a data type. [M3CHAR]
INTEGER, PARAMETER :: M3CHAR = 7
------------------------------^
compilation aborted for dscm3grd.f (code 1)
make: *** [dscm3grd.o] Error 1

--> You are not using the default SMOKE configuration: Linux + PGI compiler.

--> Checking the SMOKE configuration settings for the Linux2_x86ifc platform...

Host name: isaaqneoris
Platform type: Linux2_x86ifc
Main SMOKE directory: /home/jose.velasco/SMOKE_v2.3/subsys/smoke
Executable directory: /home/jose.velasco/SMOKE_v2.3/subsys/smoke/Linux2_x86ifc
Data directory: /home/jose.velasco/SMOKE_v2.3/data


Anyone can help me with this?. Thanks a lot.

P.D. I have SuSE Linux Enterprise Server 10 and Intel Fortran Compiler 9.1.041
0 Kudos
4 Replies
TimP
Honored Contributor III
3,350 Views

Did you look at the source to see whether ifort is telling the truth?

For decades, a commonly requested Fortran extension, not supported by the standards, nor by Intel compilers, has permitted redundant declarations. There never was any de facto standard for this extension, on whether the first or last declaration would be in effect

The compiler is telling you this is not the first mention of M3CHAR in dscm3grd.f. If that is correct, try commenting out the earlier one, if this is the one you want to be effective.

0 Kudos
jose_velasco
Beginner
3,350 Views
Thanks for your reply Tim.

I've been looking the file dscm3grd.f and I think that the only mention is in the line 87 but I don't know anything about fortran so maybe I'm wrong. Anyway with the portland compiler seems to compile so, is it possible to be any incorrect or missing flag for the intel compiler?

Thanks a lot.
0 Kudos
Steven_L_Intel1
Employee
3,350 Views

It is very unlikely that the compiler made a mistake here. You need to also check INCLUDE files and the sources to any modules that are referenced in USE statements.

Where can this SMOKE software be obtained?

0 Kudos
jose_velasco
Beginner
3,350 Views

Finally you were right and I was wrong, there was an error in the source code. Now the error has been corrected.

Thank you very much for your support.

0 Kudos
Reply