Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mo Chen authored and Mo Chen committed Dec 7, 2021
1 parent 1d21563 commit 8a017f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -4569,6 +4569,8 @@ def _stop(_sim):
change = _sim.fields.dft_time_fields_norm()
closure['maxchange'] = max(closure['maxchange'],change)
closure['t0'] = _sim.fields.t
if closure['maxchange'] == 0:
return False
if verbosity.meep > 1:
fmt = "DFT fields decay(t = {0:0.2f}): {1:0.4e}"
print(fmt.format(_sim.meep_time(), np.real(change/closure['maxchange'])))
Expand Down

0 comments on commit 8a017f0

Please sign in to comment.