diff options
author | Anton Khirnov <anton@khirnov.net> | 2020-08-26 16:45:08 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2020-08-26 16:45:39 +0200 |
commit | ac164e2c6a88ea527a7a9ae4da9e33fb1c06ec2c (patch) | |
tree | 71d1596c65f7436a636059420d434cce7e016049 | |
parent | 7beb03aa1ed290f272a8128f7130253e95c9ca1a (diff) |
Fix getting into upper branch with negative a.
-rw-r--r-- | init.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -332,7 +332,7 @@ int td_solve(TDContext *td, double *coeffs_init[3]) "second branch where mass increases with decreasing amplitude\n", td->amplitude, ce->a_converge); } - a0 = ce->a_converge; + a0 = SGN(td->amplitude) * ce->a_converge; tdi_constraint_eval_free(&ce); if (coeffs_init) { |