- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello all,
In ifc compiler vesion 7, the simple code below produces a progress bar (kind of) by adding a #-mark to the line every cycle of the ii variable.
This is what I want; however, the latest compiler version, ifort, produces no output until the loops are finished and that writes the whole bar at once.
How can I get back my slowly progressing bar in ifort?
PROGRAM testbar
!print progress bar to show current progress of window processing
INTEGER :: ii,jj
REAL :: number
number=1.
DO ii=1,100
WRITE(*,'(A)', ADVANCE='NO') "#"
DO jj=1,1000000000
number=SQRT(number)
END DO
END DO
WRITE(*,*)
END PROGRAM testbar
In ifc compiler vesion 7, the simple code below produces a progress bar (kind of) by adding a #-mark to the line every cycle of the ii variable.
This is what I want; however, the latest compiler version, ifort, produces no output until the loops are finished and that writes the whole bar at once.
How can I get back my slowly progressing bar in ifort?
PROGRAM testbar
!print progress bar to show current progress of window processing
INTEGER :: ii,jj
REAL :: number
number=1.
DO ii=1,100
WRITE(*,'(A)', ADVANCE='NO') "#"
DO jj=1,1000000000
number=SQRT(number)
END DO
END DO
WRITE(*,*)
END PROGRAM testbar
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use:
WRITE(*,'($,A)') "+#"
and compile with -ccdefault:fortran

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page