code-saturne / code_saturne

code_saturne public mirror
https://www.code-saturne.org
GNU General Public License v2.0
218 stars 81 forks source link

Possible division by zero when computing impact angle in lagrangian statistics #45

Closed mathrack closed 5 years ago

mathrack commented 5 years ago

This can happen if the velocity is zero?

https://github.com/code-saturne/code_saturne/blob/73942e88bf83e2a2b35ba37bd8ed21456c04030c/src/lagr/cs_lagr_stat.c#L830

mathrack commented 5 years ago

Fixed in 6ef5dffdc90a8195c22231b94b48d3cdfb0afd36