Carriage Control to Terminal

Carriage Control to Terminal

Community Admin's picture

I am converting a large application from PowerStation 4.0 to Visual Fortran 6.5. In one part of my application, I write a day number to the screen. I want day 2 to overwrite day 1, etc.
PowerStation code used a "+" in column 1, but this does not work in CVF 6.5. How do I fix this?
The application does not open unit = 6 specifically, Do I need to do this?
Code is:
if (abs(tsim-tstart) .lt. 1.0) then
cchr = ' '
else
cchr = '+'
endif

C WRITE LINE TO SCREEN.
write (6,1000) cchr, nday
1000 format (A1, '*** Day', I5)

thanks
Joe

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Steve Lionel (Intel)'s picture

Compile with /ccdefault:fortran or select in Project..Settings..Fortran..Run-Time. Enabling PowerStation "general" compatibility also will do this.

Steve

Steve

Login to leave a comment.