move: downgrade assume(isfinite()) to assert()
The former triggers -Wassume on some systems, even though it should have no side effects.
This commit is contained in:
parent
14a370e940
commit
e012b34e61
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ cmplx move_update(cmplx *restrict pos, MoveParams *restrict p) {
|
|||
real m = cabs2(av);
|
||||
assume(m >= 0);
|
||||
m = pow(m, o.attraction_exponent - 0.5);
|
||||
assume(isfinite(m));
|
||||
assert(isfinite(m));
|
||||
o.velocity += o.attraction * (av * m);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue