[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [photran] Running Fortran apps in console ?
|
msdklein wrote:
Hi members! I'm using Eclipse 3.1 with Photran plugin 2.1.0 on an Ubuntu
5.1 box. Using C++ (gcc) works well. But running fortran apps compiled
with g95 shows special effects on the console window. Any print or write
statement is executed after all read statements. E.g.
program day
integer :: day
print *, "Welcome"
write( unit=*, FMT=900 )
read( unit=*, FMT=800) day
...
stop
800 format( i4 )
900 format( 1x, 'Enter day (1-31):' )
....
END program day
First You have to enter a value for day, press enter and then the write
and print statements follow. No problems, running this program in an
xterminal. What's the problem? Any idea?
Thanx a lot
Mag
_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran
For some reason, the print data doesn't get flushed.
The workaround I have used is to put
flush(6)
between the print and the read.
--
Walt Brainerd +1-877-355-6640 (voice & fax)
The Fortran Company +1-520-760-1397 (outside USA)
6025 N. Wilmot Road walt@xxxxxxxxxxx
Tucson, AZ 85750 USA http://www.fortran.com