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

Intel Fortran WRITE statement output conversion problem

Jorden_Wright
Beginner
483 Views
I run into a output conversion problem with Intel Visual Fortran Composer XE 2011. The following is the code:

"
WRITE(6,7330) II,IVCONST,DUMMY
WRITE(25,7330) II,IVCONST,DUMMY
7330 FORMAT(1X,' Row#,Constraint#= ',2I10,2X,A55,
& ' cannot be satisfied but is in the sufficient set.')
"

32 bit executable, the variable values at run time:

II = 1, IVCOST=1,DUMMY='MYCON1' (Microsoft Visual Studio 2008)
II = 4232582, IVCOST=1, DUMMY='MYCON1a' (Screen output)
II = 1, IVCOST=52445245, DUMMY='MYCON1' (Unit 25, file output).

This subroutine has calls to a 3rd party Linear Optimization software LINDO libraries.

Does anyone else run into this type of problem?

Thanks in advance.

JW.
0 Kudos
2 Replies
IanH
Honored Contributor III
483 Views
IVCONST? IVCOST?
0 Kudos
Jorden_Wright
Beginner
483 Views

Sorry, IVCOST should have been IVCONST.

0 Kudos
Reply