Changed the exit condition and reflected change here.
This commit is contained in:
parent
3dab7d35bf
commit
dbfe5225fa
@ -18,8 +18,7 @@ function [LoadingRate, StandardError, ConfidenceInterval] = calculateLoadingRate
|
|||||||
end
|
end
|
||||||
for AtomIndex = 1:n
|
for AtomIndex = 1:n
|
||||||
Position = squeeze(DynamicalQuantities(AtomIndex, TimeIndex, 1:3))';
|
Position = squeeze(DynamicalQuantities(AtomIndex, TimeIndex, 1:3))';
|
||||||
Velocity = squeeze(DynamicalQuantities(AtomIndex, TimeIndex, 4:6))';
|
if this.exitCondition(Position, CollisionEvents(AtomIndex))
|
||||||
if this.exitCondition(ovenObj, Position, Velocity, CollisionEvents(AtomIndex))
|
|
||||||
NumberOfLoadedAtoms(TimeIndex) = NumberOfLoadedAtoms(TimeIndex) + 1;
|
NumberOfLoadedAtoms(TimeIndex) = NumberOfLoadedAtoms(TimeIndex) + 1;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user