Skip to main content

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

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





Back to the top