biod.pnpi.spb.ru
/
alexxy
/
gromacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
5227e86
)
Fix norm calculation in gmx_spatial
author
Joe Jordan
<ejjordan12@gmail.com>
Wed, 27 Oct 2021 10:15:13 +0000
(10:15 +0000)
committer
Andrey Alekseenko
<al42and@gmail.com>
Wed, 27 Oct 2021 10:15:13 +0000
(10:15 +0000)
Casting early to a double should avoid underflow in later multiplication.
An assert that the norm is non-negative is added.
Fixes #4184
No differences found