Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
The Intel sign-in experience has changed to support enhanced security controls. If you sign in, click here for more information.
27778 Discussions

The output does not show on terminal screen

Oktay_1
Beginner
524 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
500 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
501 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
493 Views

Dear Jim, 

Thak you so much for your kind answer. 

Kind regards,

Oktay

Reply