Changed the order of occurence of test conditions in if-tests and for-loops to avoid over running the array bounds before "limit check" condition was executed.
Changed the order of occurence of test conditions in if-tests and
for-loops to avoid over running the array bounds before "limit check"
condition was executed.


SINTEF-Geometry/SISL