Commits

Peter Brune  committed 71cee68

SNESLINESEARCHBT: Set the norms when exiting early due to negligible step.

reported-by: Jay Jay Billings <billingsjj@ornl.gov>

  • Participants
  • Parent commits 7390fa2

Comments (0)

Files changed (1)

File src/snes/linesearch/impls/bt/linesearchbt.c

     }
     ierr = VecCopy(X,W);CHKERRQ(ierr);
     ierr = VecCopy(F,G);CHKERRQ(ierr);
+    ierr = SNESLineSearchSetNorms(linesearch,xnorm,fnorm,ynorm);CHKERRQ(ierr);
     ierr = SNESLineSearchSetSuccess(linesearch, PETSC_FALSE);CHKERRQ(ierr);
     PetscFunctionReturn(0);
   }