Commit 6d27d488 authored by Olexa Bilaniuk's avatar Olexa Bilaniuk

Bugfix in n* optimization.

Similar to the problem in LevMarq, arg.inl was being used instead of
best.inl. This opened us up to a potential segfault.
parent ac1099de
...@@ -1664,7 +1664,7 @@ inline void RHO_HEST_REFC::nStarOptimize(void){ ...@@ -1664,7 +1664,7 @@ inline void RHO_HEST_REFC::nStarOptimize(void){
best_n = test_n; best_n = test_n;
bestNumInl = testNumInl; bestNumInl = testNumInl;
} }
testNumInl -= !!arg.inl[test_n-1];/* FIXME: Probable bug! */ testNumInl -= !!best.inl[test_n-1];
} }
if(bestNumInl*ctrl.phMax > ctrl.phNumInl*best_n){ if(bestNumInl*ctrl.phMax > ctrl.phNumInl*best_n){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment