Thank you for your advice.
In reply to Re^2: exiting a for loop by velocitymodel in thread exiting a for loop by velocitymodel