simplify print
This commit is contained in:
parent
922161c0e6
commit
2b96e5dd84
@ -31,8 +31,8 @@ class Simulation(object):
|
|||||||
|
|
||||||
pmls = [{'axis': a, 'polarity': p} for a in 'xyz' for p in 'np']
|
pmls = [{'axis': a, 'polarity': p} for a in 'xyz' for p in 'np']
|
||||||
sim = Simulation(grid.grids, do_poynting=True, pmls=pmls)
|
sim = Simulation(grid.grids, do_poynting=True, pmls=pmls)
|
||||||
with open('sources.c', 'w') as f:
|
with open('sources.c', 'wt') as f:
|
||||||
f.write('{}'.format(sim.sources))
|
f.write(repr(sim.sources))
|
||||||
|
|
||||||
for t in range(max_t):
|
for t in range(max_t):
|
||||||
sim.update_E([]).wait()
|
sim.update_E([]).wait()
|
||||||
|
Loading…
Reference in New Issue
Block a user