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:
Andrei Alexeyev 2023-02-24 03:51:21 +01:00
parent 14a370e940
commit e012b34e61
No known key found for this signature in database
GPG key ID: 72D26128040B9690

View file

@ -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);
}
}