home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!pedro
- From: pedro@eerc.berkeley.edu (Peter Clark)
- Newsgroups: comp.lang.fortran
- Subject: Problem with WRITE for large arrays
- Date: 9 Sep 1992 18:59:12 GMT
- Organization: University of California, Berkeley
- Lines: 33
- Message-ID: <18lhi0INNf0@agate.berkeley.edu>
- NNTP-Posting-Host: jolt.eerc.berkeley.edu
-
- Hi all,
-
- I am having a problem writing out a large array of single precision
- numbers. I am using SUN FORTRAN on a SUN4 running SUNOS4.1.1.
-
- Here is some code:
-
- real*4 sdata(10000)
- open(13,file='shimzdata',form='unformatted')
-
- write(13) (sdata(k),k=1,NPTS)
-
- The problem is, if NPTS is greater than about 2000, the program
- crashes with this message:
-
- *** Segmentation Violation = signal 11 code 3
- Traceback has been recorded in file:
- /tmp/./conv.trace
- Note: Line numbers for system and library calls may be incorrect
- IOT trap
-
- When I try to write out the same data to the terminal with
-
- write(6,*) (sdata(k),k=1,NPTS)
-
- there is no problem for NPTS as large as 10000.
-
- What's going on here?
-
- Thanks for any and all help or advice, Peter Clark
-
- pedro@eerc.berkeley.edu
-
-