We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d2cea0 commit e22bd56Copy full SHA for e22bd56
1 file changed
src/festim/helpers.py
@@ -325,7 +325,7 @@ def is_it_time_to_export(
325
"""
326
Checks if the exported field should be written to a file or not based on the
327
current time and the times in `export.times'
328
-
+
329
After a successful match, the corresponding time is removed from the list to
330
prevent multiple exports for the same target time.
331
@@ -341,7 +341,7 @@ def is_it_time_to_export(
341
342
if times is None:
343
return True
344
345
for i, time in enumerate(times):
346
if np.isclose(time, current_time, atol=atol, rtol=rtol):
347
times.pop(i) # consume the time so it is not exported again
@@ -350,7 +350,6 @@ def is_it_time_to_export(
350
return False
351
352
353
354
_residual0 = 0
355
_prev_xnorm = 0
356
0 commit comments