vec/unvec live in meanas.fdmath
This commit is contained in:
parent
1403b9e1a3
commit
4c81f33d05
2 changed files with 2 additions and 2 deletions
2
fdtd.py
2
fdtd.py
|
|
@ -228,7 +228,7 @@ def main():
|
|||
|
||||
with lzma.open('saved_simulation', 'wb') as f:
|
||||
def unvec(f):
|
||||
return meanas.unvec(f, grid.shape)
|
||||
return meanas.fdmath.unvec(f, grid.shape)
|
||||
d = {
|
||||
'grid': grid,
|
||||
'E': unvec(sim.E.get()),
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ class Simulation(object):
|
|||
event.wait()
|
||||
|
||||
with lzma.open('saved_simulation', 'wb') as f:
|
||||
dill.dump(fdfd_tools.unvec(sim.E.get(), grid.shape), f)
|
||||
dill.dump(meanas.fdmath.unvec(sim.E.get(), grid.shape), f)
|
||||
|
||||
Code in the form
|
||||
event2 = sim.update_H([event0, event1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue