On Sun, 20 May 2007, adrian wrote:
> terminate called after throwing an instance of
> 'std::bad_alloc'
This occurs when C++ runs out of memory (as Google could tell you).
Looking at your code, you are trying to allocate a 800x800x176
computational cell at a resolution of 10. This requires
800*800*176 * 10^3
grid points. Even if Meep required only one number per grid point, this
would require almost a terabyte of RAM, so it is not too surprising that
it is failing.
Steven
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss