Hello,

I head the same error on occasion. You are probably trying to generate a
grid of more than ~2e9 mesh points (the maximum of integer). This appears to
be currently impossible.

I'm afraid the only thing you can do is reduce the grid size or look for the
relevant part of the source code. Also, think about how much memory you need
and if your computer provides that.

Best,
  Georg


On Wed, Jul 27, 2011 at 12:01 PM, Mehdi Askari <[email protected]> wrote:

> Dear meep users
> I have a ctl file for a 3-dimensional simulation.  ​When I run the
> simulation, one of the two following errors appear:
> 1) " meep: cannot split -1399431680 (or another number) grid points into
> one "
> 2) " terminate called after throwing an instance of 'std::bad_alloc'
>                           what() : std::bad_alloc "
> I will appreciate if any one tells me what they mean.
> Thank you very much in advance
> Mehdi Askari
>
> _______________________________________________
> meep-discuss mailing list
> [email protected]
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
>
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to