- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to write program progress on the same line of the display (no scrolling). I have a method that works with GNU Fortran and PGI Fortran, but not with Intel Fortran. The example below displays 1, 2, 3...10 on the same line seperated by 1 second delay. With Intel Fortran there is a 10 second delay with nothing on the display and then a 10 at the end.
It seems that the FLUSH statement isn't working. I also tried the CALL FLUSH(6) intrinsic without any improvement.
[fortran]do i=1,10 write (*,"(A1,I2)",advance="no") char(13), i flush(6) call sleep(1) enddo write (*,*) [/fortran]
Can you help me get thisfeature working with Intel Fortran? I am using version12.0.0 build 107.
Thanks.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is there an estimated date to have the feature added to FLUSH?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This was implemented in a 13.0 update. Sorry for not updating the thread earlier.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page