Intel® Fortran Compiler for Linux* and Mac OS X*

Tokens may not be continued across lines

Anyone seen this?

We use Ifort 9.1 on Linux, and lately on winXP as well. The Windows compiler (and good-old-CVF) has no trouble with the source, but the same source on linux throws up this error. Offending statement is 130 characters wide so what follows will appear mangled because of unwanted line-wrap. In addition this forum's text formatter has replaced runs of many spaces with just one space. Anyway here it is:

830 format( &

3X,' Dist. Elev. Horiz. Vert. Pres. Temp. Mean Pressure ',a4,' ',a6,' ',a6,' Densities Slug Flow'/ &

Please help: fortran compile error

I am a new user for the fortran. When I compile my code, I got this error message:


/tmp/ifort1nztqP.o(.text+0x19): In function `fpres_':
: relocation truncated to fit: R_X86_64_32S fields_
/tmp/ifort1nztqP.o(.text+0x21): In function `fpres_':
: relocation truncated to fit: R_X86_64_32S __BLNK__

.........................similar lines........................

mpicc errors while linking


I am using mpich/intel9.0 to compile a code which uses the ParMetis and Pyramid Libraries (which I have already compiled and installed). Now mpicc compiles fine but while linking I have a lot of undefined references to some fortran calls as shown below.

Any ideas as to what could be wrong here (btw the output of printenv is also attached)

Thanks in advance

the writing of a variable changes (other) variables addresses


I'm wrote a program, half a year ago. It worked perfectly. Now a collegue tried to run it, but she got some really bogus results ... so I started debugging.

The problem is like this:

I have an integer and a float array. When I write the integer before and after, my nested do-loops for filling my float array, ... I get different results

It seems that the address of my integer is the same as the address of 1 element of my array. So ... with the filling of my array, my integer gets overwritten and ....

invert SPD matrix

For the following matrix:

3.0 2.0
2.0 3.0

i get an incorrect answer for the inverse matrix when using the routines for a symmetric positive-definite matrix:

call potrf(M)
call potri(M)

The result i get is:

0.6 2.0
-0.4 0.6

When i use

call getrf(M,ipiv)
call getri(M,ipiv)

i do get the correct answer:

0.6 -0.4
-0.4 0.6

Any ideas why this is happening?



different ouput with -g and -O0

I am getting different output from my program depending on wether I
compile (ifort 8.1.034) it with -g or -O0 (the only parameters used). Even more
confusing, I get changes in the output when I put a write(*,*) 'TEST'
in my program (line 281). This happens on my system (Pentium M, Suse
Linux 9.3, kernel as well as on an other system
(Pentium 4, Suse Linux 9.0, kernel 2.4.21-215-default) but here with
even other output values.
The program is quite big for being a test case but the two parts it

Subscribe to Intel® Fortran Compiler for Linux* and Mac OS X*