Skip to content

Commit 3939197

Browse files
committed
update
1 parent d18bca1 commit 3939197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Exec/science/xrb_spherical/analysis/front_tracker.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,12 @@ def track_flame_front(ds, metric):
9292
max_index = np.argmax(averaged_field)
9393

9494
# Now assuming flame moves forward in theta, find theta such that the field drops below some threshold of the averaged max
95-
loc_index = averaged_field[max_index:] < metric.percent * max(averaged_field)
95+
loc_index = averaged_field[max_index:] <= metric.percent * max(averaged_field)
9696

9797
# Find the first theta that the field drops below the threshold.
9898
theta_loc = thetas[max_index:][loc_index][0]
9999

100-
# Returns 5 quantities
100+
# Returns 7 quantities
101101
# 1) file name of the dataset
102102
# 2) time in ms
103103
# 3) theta that corresponds to the flame front

0 commit comments

Comments
 (0)