← Back to team overview

yade-dev team mailing list archive

Re: getStress in TSC

 

> Even if you assert the id of the boundary, it seems that it returns a
> value with no error message also if you type label.stress(20) in
> python (being label the name of the engine). Is it expected? Just to
> know.

Assertions are elided in optimized code.

That function should really check and throw and exception if the number
is out of bounds, otherwise one might trigger from python, which is not
acceptable. Bruno?





References