[Dune] max matrix size + gps

Christian Engwer christian.engwer at uni-muenster.de
Fri Mar 2 16:05:13 CET 2012


On Fri, Mar 02, 2012 at 03:49:54PM +0100, Oliver Sander wrote:
> Am 02.03.2012 15:43, schrieb Flo.44 at gmx.de:
> >Hi,
> >
> >to my first question, i think it's a problem of my workstation, but i'dont know why. When I'm running my example on another workstation it runs perfect.
> >
> 
> I'd say you get a stack overflow.  500*500 doubles is 2MB, that's
> quite a lot.  And of course
> stack size is architecture dependent, so your program my run on one
> machine and crash on another.

I agree. You should try allocating the FieldMatrix on the heap, using
new and delete.

Christian




More information about the Dune mailing list