Skip to content

Commit

Permalink
Added a further check of results from Herget method/'linearizing' ste…
Browse files Browse the repository at this point in the history
…ps to break out with an error indicated if either method fails.
  • Loading branch information
Bill-Gray committed Mar 5, 2024
1 parent cc2e819 commit e2efd4a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions orb_fun2.cpp
Expand Up @@ -80,9 +80,11 @@ static double simplex_scoring( void *icontext, const double *ivect)

if( context->n_params == 2)
{
herget_method( context->obs, context->n_obs, ivect[0], ivect[1],
context->orbit, NULL, NULL, NULL);
adjust_herget_results( context->obs, context->n_obs, context->orbit);
if( herget_method( context->obs, context->n_obs, ivect[0], ivect[1],
context->orbit, NULL, NULL, NULL))
return( 1e+30);
if( adjust_herget_results( context->obs, context->n_obs, context->orbit))
return( 1e+30);
}
else
{
Expand Down

0 comments on commit e2efd4a

Please sign in to comment.