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

The output does not show on terminal screen

Oktay_1
Beginner
783 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
Honored Contributor III
759 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

0 Kudos
2 Replies
jimdempseyatthecove
Honored Contributor III
760 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

0 Kudos
Oktay_1
Beginner
752 Views

Dear Jim, 

Thak you so much for your kind answer. 

Kind regards,

Oktay

0 Kudos
Reply