Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Running Fortran apps in console ?

Thanx Walt. 
Previously I thought about flush (from other languages), but on my Box,
flush will not be compiled (flush( 6 ); Error: Unclassifiable statement
at"). Could this be an Eclipse or G95 bug?

On Tue, 2006-03-21 at 11:58 -0700, Walt Brainerd wrote:
> 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.
> 



Back to the top