Write position
- From: Bokgae <worn76@xxxxxxxxx>
- Date: Mon, 2 Feb 2009 22:13:29 -0800 (PST)
Hello,
I'd like to write the number of data at the beginning of the result
file.
I tried the following code
===============================
NCOUNT = 0
DO N = 1, 1000000000, 1
NCOUNT = NCOUNT + 1
RESULT( N ) = some calculations
WRITE( 99, * ) RESULT( N )
IF( RESULT( N ) > 10. ) EXIT
ENDDO
REWIND( 99 )
WRITE( 99, * ) NCOUNT
===============================
but the result shows NCOUNT only without any RESULT( N )
How can I write NCOUNT in the first line of the 'fort.99' like
following
fort.99 example
5
0.01
0.2
0.5
1.0
20.0
.
- Follow-Ups:
- Re: Write position
- From: glen herrmannsfeldt
- Re: Write position
- Prev by Date: Re: calculating the julian day
- Next by Date: Re: Write position
- Previous by thread: Re: Puuttuuko puhelimestasi kasi?
- Next by thread: Re: Write position
- Index(es):