On Tue, Aug 30, 2005 at 05:00:57PM -0400, Nicolas Ouellette wrote: > Hello > > I am presently running a huge code following the hydrodynamical evolution > of a system (in 2 dimentions). I store the quantities evolving (density, > velocity, pressure) into large 2-D arrays. Recently, I tried to make my > 2-D arrays bigger (to study a bigger system) and eventually, I reached a > certain point where I was getting a "segmentation error". The only thing I > changed was the size of my arrays. > > I deleted a few arrays that were redundant (making my code less user > friendly), and I found that I could slightly increase the size of my arrays > until I reached the "segmentation error". > > Here are my questions: 1) Is there a maximum number of variables allowed > when using gcc? (from my experience I am guessing yes) 2) Is there a way to > increase the number of variables allowed when using gcc? It sounds like you may have overflowed the stack. Could you try increasing the stack size? I don't know how to do that though with gcc. Bob Rossi