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

Opening Console Output File for write(*,*) in library.

rre9518
Beginner
412 Views
I'm using a set of FORTRAN routines from a console application in a library. The write(*,*) statemetns crash. I tried opening unit 6 and unit 2 before the writes but it still didn't work.

I can't modify the code. What unit does IVF 11 use for the console? How do I handle this?
0 Kudos
1 Reply
Les_Neilson
Valued Contributor II
412 Views
Quoting - rre9518
I'm using a set of FORTRAN routines from a console application in a library. The write(*,*) statemetns crash. I tried opening unit 6 and unit 2 before the writes but it still didn't work.

I can't modify the code. What unit does IVF 11 use for the console? How do I handle this?

Can you explain what you mean by "crash" ?
If you open a console window and run your program what error message do you get?

What do you meanyou "can't modify the code" (do you mean the library code?)
You obviously can change some code because you said you added open statements

The usual advice :
In your own code (that you can modify)add IMPLICIT NONE to all your routines.
Turn on all debugging aids (array bounds, uninitialized variables etc)
Afterrebuilding your exeopen the console window and run the program again.
Better still run the program in the Visual Studio IDE debug mode then when it "crashes" you should be able to see where and what are the values of your data.

Les
0 Kudos
Reply