I have a problem creating an array with larger dimensions. I have the following lines in the program and when I set zs to be as large as 1000, the program crashes. I wonder if it is about the GAUSS or the memory in my computer?
Thank you so much for your help!!
1. sa=10, sp=10, z=160, se=100
An array that is 10x10x160x100x1000 is going to take up about 11 GB. That is almost twice as much RAM as your computer has. Under the hood, GAUSS is asking your system to give it a block of memory that is 11 GB and your system says that it does not have that much space to give.
Depending upon how much you ask for you should receive either the error: G0030 Insufficient Memory, or the error: G0037 Result too large.
To deal with the memory constraints on your computer you will need to store some of the data on disk and load it into memory as needed. If you post some information about your program, I would be happy to assist you in implementing a solution.
- Can you tell me what the values of sa, sp, z and ze are when you have this problem?
- Do you know how much memory the computer has?
- Is your GAUSS 32-bit or 64-bit?
- Which GAUSS version of GAUSS are you running (i.e. 10, 11, 12, 13, etc)?