← Back to team overview

yade-users team mailing list archive

Re: [Yade-dev] Be carefull with "normalize"

 


Let's just set it to zero. And either:

1. put a std::cerr warning when a division by zero is detected or
2. remove the check altogether, let it divide by zero and crash.

I prefer 2nd option. Much safer.

I like both.

Bruno

--

_______________
Chareyre Bruno
Maitre de conference

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________




Follow ups

References