ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
hi
i have a file of size 6.9.GB. how can i make fortran to read this file?
basically the file is a matrix of dimension 134217728 x 27
i'm using a work-station having 2 GB of RAM and 160 GB of HDD
A segmentation fault error is related to memory: the software is trying to access a memory location that is not allowed to be accessed for some reason. A solution can be to increase the stack space (see man ulimit for details) to let the program do its work and then restore the original value. By the way, I am surprised that the code has been compiled, since usually there are limits in the size of arrays. Which fortran compiler are you using? And what about CPU model and amount of swap?
A segmentation fault error is related to memory: the software is trying to access a memory location that is not allowed to be accessed for some reason. A solution can be to increase the stack space (see man ulimit for details) to let the program do its work and then restore the original value. By the way, I am surprised that the code has been compiled, since usually there are limits in the size of arrays. Which fortran compiler are you using? And what about CPU model and amount of swap?
thanks, but ulimit can not help me out as i already made those value maximum.i'm using g77 compiler. CPU is a workstation with xeon prosessor and 2GB ram
Can you buffer it so it only processes the document so many bytes at a time?
Also, you could be getting the segmentation fault due to there not being enough memory for the file to be open (most likely). You have 2GB of RAM, but how big is the swap space partition on your drive?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.