Re: Need help with large file reading and writing.
- From: Herman D. Knoble <SkipKnobleLESS@xxxxxxxxxxxxxxx>
- Date: Fri, 14 Jul 2006 08:21:37 -0400
Liscom: Your program looks ok; others made suggestions on Formatted I/O
but this won't likely change the problem you're having. Suggest that you
check the following:
1) Check how much RAM and correspoinding virtual storage you have.
Many people suggest that virtual storage shoud be about 2.5 times RAM.
If that number is less than 3GB then you're suspicions are likely true.
(Note the Windows Control Panel System icon will show RAM size; typically
for the System Icon, the Performance button of the Advancde tab will show
Virtual Storage allocation. If you are running under Linux try the
following commands:
free -m
cat /proc/cpuinfo > t.t
cat /proc/meminfo > t.t
2) Make sure you're using the latest compiler version.
3) Try a different compiler; for example, G95: http://g95.sourceforge.net/
Good luck with it.
Skip Knoble
On Thu, 13 Jul 2006 17:20:20 -0400, "news.gatech.edu" <liscon@xxxxxxxxx> wrote:
-|
-|Hello Pals:
-|
-| When I use fortran 90 code to read larger files,about 1G each, and
-|write the data to other opened files with 32-bit Intel-compiler. Each
-|time, I just opened 3 files simultaneously and closed unused ones. The
-|code always stops at the point of 10 files reading. I am not sure it is
-|the compiler problem about the limitation of buffer memory.
-|
-|Thanks very much
-|
-|Liscon
-|
-|
-|Simple code:
-|
-| open(unit=18,file="aux.out")
-| do i=1,10
-| open(unit=101+i,file="fort.1+i") !old file; unit and file name just
-|for simplicity
-|
-| open(unit=1001+i,file="fort.101+i") !New file
-|
-| do j=1,EN ! number of lines wrote to the new file
-| read(101+i,format)n1,n2,n3,n4,n5,n6,n7
-| write(1001+i,format)n1,n2,n3,n4,n5,n6,n7
-| end o
-|
-| do j=EN+1,N ! number of lines left,N=total lines of old file
-| read(101+i,format)n1,n2,n3,n4,n5,n6,n7
-| write(1001+i,format)n1,n2,n3,n4,n5,n6,n7
-| end do
-|
-| close(101+i)
-| close(1001+i)
-|
-| end do
.
- Follow-Ups:
- Re: Need help with large file reading and writing.
- From: news.gatech.edu
- Re: Need help with large file reading and writing.
- References:
- Need help with large file reading and writing.
- From: news.gatech.edu
- Need help with large file reading and writing.
- Prev by Date: Re: how DEALLOCATE statement works in f2003
- Next by Date: Re: Need help with large file reading and writing.
- Previous by thread: Re: Need help with large file reading and writing.
- Next by thread: Re: Need help with large file reading and writing.
- Index(es):