- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page