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.
This commit is contained in:
Olexa Bilaniuk 2015-03-18 02:21:16 -04:00
parent ac1099deb8
commit 6d27d488bf

View File

@ -1664,7 +1664,7 @@ inline void RHO_HEST_REFC::nStarOptimize(void){
best_n = test_n;
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){