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

The output does not show on terminal screen

Oktay_1
Beginner
453 Views

Dear All, 

 

I know that this question might be too easy to ask, but I am novice Fortran user. The question that I would like to ask is that when I do some calculation in my program, I would like to see the result on the terminal screen. However, the terminal screen disappears before showing the result. 

I was jsut wondering how I can display the result on the terminal screen. 

I do thank  you so much for your kind advice.

Kind rgeards,

Oktay

0 Kudos
1 Solution
jimdempseyatthecove
Black Belt
429 Views

You can place a PAUSE at the end of the program.

Note, when launching the program from MS VS, it is standard operating procedure to close the CMD window.

You can avoid this in Release build by issuing: Debug | Start without debugging

In Debug mode, place a break point at end of program (or PAUSE, or Debug | Start without debugging)

 

If you launch a finished application from Double Click, use the PAUSE route.

 

Jim Dempsey

View solution in original post

2 Replies
jimdempseyatthecove
Black Belt
430 Views

You can place a PAUSE at the end of the program.

Note, when launching the program from MS VS, it is standard operating procedure to close the CMD window.

You can avoid this in Release build by issuing: Debug | Start without debugging

In Debug mode, place a break point at end of program (or PAUSE, or Debug | Start without debugging)

 

If you launch a finished application from Double Click, use the PAUSE route.

 

Jim Dempsey

Oktay_1
Beginner
422 Views

Dear Jim, 

Thak you so much for your kind answer. 

Kind regards,

Oktay

Reply