Re: [Meep-discuss] Does get_array(...) synchronize the magnetic field?

2018-09-18 Thread Thomas AUZINGER

Hi Chris,

Thanks for the info. This does not fully fit my use case, as I am 
calling get_array(...) after the sim already finished. So not inside a 
step function.

So far, this seems to work but your answer cast some doubt on this.

Just to be sure: Is the usage of sim.get_array(...) permitted after 
sim.run(...) already finished?


In any case, I guess I need to pack my code into a step function that 
runs at the end of the simulation.


All the best,
Thomas


On 18-Sep-18 17:44, Christopher Hogan wrote:

Hi Thomas,

> I just want to know if calls to get_array(...) synchronize the 
magnetic field.


Looking at the code, it appears the answer is no. You can use the 
synchronization functions described here:


https://meep.readthedocs.io/en/latest/Synchronizing_the_Magnetic_and_Electric_Fields/#synchronization-functions

Chris

On Tue, Sep 18, 2018 at 10:21 AM, Thomas AUZINGER 
mailto:tho...@auzinger.name>> wrote:


Hi,

As in the subject, I just want to know if calls to get_array(...)
synchronize the magnetic field. If not, how would I ensure that
before calling get_array(...)?

All the best,
Thomas


___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu 
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss





___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Does get_array(...) synchronize the magnetic field?

2018-09-18 Thread Christopher Hogan
Hi Thomas,

> I just want to know if calls to get_array(...) synchronize the magnetic
field.

Looking at the code, it appears the answer is no. You can use the
synchronization functions described here:

https://meep.readthedocs.io/en/latest/Synchronizing_the_Magnetic_and_Electric_Fields/#synchronization-functions

Chris

On Tue, Sep 18, 2018 at 10:21 AM, Thomas AUZINGER 
wrote:

> Hi,
>
> As in the subject, I just want to know if calls to get_array(...)
> synchronize the magnetic field. If not, how would I ensure that before
> calling get_array(...)?
>
> All the best,
> Thomas
>
>
> ___
> meep-discuss mailing list
> meep-discuss@ab-initio.mit.edu
> http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

[Meep-discuss] Does get_array(...) synchronize the magnetic field?

2018-09-18 Thread Thomas AUZINGER

Hi,

As in the subject, I just want to know if calls to get_array(...) 
synchronize the magnetic field. If not, how would I ensure that before 
calling get_array(...)?


All the best,
Thomas


___
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss