File IO
From: ajs (ajs00g_at_gmail.com)
Date: 02/22/05
- Next message: Gareth Owen: "Re: Another question for you - files name"
- Previous message: Steve_Vai: "Another question for you - files name"
- Next in thread: Richard E Maine: "Re: File IO"
- Reply: Richard E Maine: "Re: File IO"
- Reply: Steve Lionel: "Re: File IO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 22 Feb 2005 10:29:16 -0800
Hi
I am using INTEL 8.0 on a linux machine. I had a problem, managed to
fix it, but am trying to understand why this happens and if I should be
filing a bug report or something.
THe problem is with using implicit do loops to read : I am reading a
very large file (380MB or so) and if I read it using : (assuimg
im,jm,km,nm have been set)
read(10) fun(1:im,1:jm,1:km,1:nm)
it blows stack. So I set my stacksize limit to unlimited and re-rerun.
This works for one file. When I do the same read on a series of files
over and over again (in a loop, not multiple invocations of the
program), it eventually does the same thing! Then I changed the read
statement to :
read(10) ((((fun(i,j,k,n),i=1,im),j=1,jm),k=1,km),n=1,nm)
This magically works fine for virtually any number of reads. Is this
bug in the compiler or is this supposed to happen? Or is my stack
blowing theory itself all wrong? If that is the case, why did it work
on one file when I increased the stacksize limit?
Any help is appreciated, Thanks a lot.
Srinivasan
- Next message: Gareth Owen: "Re: Another question for you - files name"
- Previous message: Steve_Vai: "Another question for you - files name"
- Next in thread: Richard E Maine: "Re: File IO"
- Reply: Richard E Maine: "Re: File IO"
- Reply: Steve Lionel: "Re: File IO"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|