Commits

sarich committed 4e6ef68

tao: fix mt linesearch bug where success wasnt reported

Comments (0)

Files changed (1)

src/tao/linesearch/impls/morethuente/morethuente.c

     /* Check Armijo if beyond the first breakpoint */
     if (ls->bounded && (*f <= ftest2) && (ls->step >= bstepmin2)) {
       ierr = PetscInfo(ls,"Line search success: Sufficient decrease.\n");CHKERRQ(ierr);
+      ls->reason = TAOLINESEARCH_SUCCESS;
       break;
     }