- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I continue with the problem:
I write some numbers in a file with
...
if (icomp.eq.0) then
open(11,file='ic_deltab',form='unformatted')
else if (icomp.eq.2) then
...
rewind 11
write(11) np1,np2,np3,dx,x1o+xoff,x2o+xoff,x3o+xoff,
& astart,omegam,omegav,h0
...
And when I read the number with
...
open(11,file='ic_deltab',status='old',form='unformatted')
rewind 11
read(11) np1,np2,np3,np4
close(11)
...
I read 0 np1 np2 np3.
For example if I write 10, 20, 30 I read 0 10 20 30.
Some clues?
I write some numbers in a file with
...
if (icomp.eq.0) then
open(11,file='ic_deltab',form='unformatted')
else if (icomp.eq.2) then
...
rewind 11
write(11) np1,np2,np3,dx,x1o+xoff,x2o+xoff,x3o+xoff,
& astart,omegam,omegav,h0
...
And when I read the number with
...
open(11,file='ic_deltab',status='old',form='unformatted')
rewind 11
read(11) np1,np2,np3,np4
close(11)
...
I read 0 np1 np2 np3.
For example if I write 10, 20, 30 I read 0 10 20 30.
Some clues?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Again, please show us a complete program and not an excerpt.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page