Dear meep-users,

I am trying to simulate the reflection properties of a 2D dielectric 
structure on a 4GB memory 2.4GhZ Macbook (I guess only 3GB is addresable 
as it is only 32bit - not a Pro).

The size of the block is 256x256 and when i set the resolution to say 32, 
the run fails with the following output:

Initializing structure...
Working in 2D dimensions.
meep(1094) malloc: *** mmap(size=545161216) failed (error code=12)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
terminate called after throwing an instance of 'std::bad_alloc'
   what():  St9bad_alloc
      block, center = (0,0,0)
           size (256,256,1e-20)
           axes (1,0,0), (0,1,0), (0,0,1)

Btw., I am simulating this at optical frequencies and I am using a custom 
epsilon-func. So I picked units of length so that a = 2.604 nm and the 
block dimension is 256. Perhaps this is the cause of my woes?

Is this a memory allocation problem? if so how could I address this? is 
there a way to increase the amount of memory that Mac allocates to meep?

many thanks,
Vinod

"Krieg ist immer der falsche Weg."

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to