FluidityProject / fluidity

Fluidity
http://fluidity-project.org
Other
365 stars 115 forks source link

Fix short-circuit evaluation division by zero GCC v9+ #301

Closed gnikit closed 3 years ago

gnikit commented 3 years ago

Fixes Division by zero in Write_State.F90 #289

Fortran does not have short-circuit evaluation!

NOTE: I am not sure I have removed all the short-circuit expressions. I do believe however that I have removed all the divs by 0 in mod. Validated using Rust flavoured regex: mod\((.*)\)(\s*?)


This should probably be merged to master before the focal update or merged into the focal update PR