Re: [Meep-discuss] Strange memory allocation

2015-05-05 Thread Alex
-discuss [meep-discuss-boun...@ab-initio.mit.edu] on behalf of Alex [to.sa...@gmail.com] Sent: Tuesday, 5 May 2015 7:15 p.m. To: meep-discuss@ab-initio.mit.edu Subject: [Meep-discuss] Strange memory allocation Dear MEEP users and developers. Found some potential incorrect code in MEEP sources

[Meep-discuss] Strange memory allocation

2015-05-05 Thread Alex
Dear MEEP users and developers. Found some potential incorrect code in MEEP sources. I'm not real programmer and my suspicions would turn out nothing. There are some code with memory shift calculation without using sizeof Code from susceptibility.cpp meep-1.2.1: void

Re: [Meep-discuss] Strange memory allocation

2015-05-05 Thread Gib Bogle
. Does that make sense? Gib From: meep-discuss [meep-discuss-boun...@ab-initio.mit.edu] on behalf of Alex [to.sa...@gmail.com] Sent: Tuesday, 5 May 2015 7:15 p.m. To: meep-discuss@ab-initio.mit.edu Subject: [Meep-discuss] Strange memory allocation Dear MEEP