Skip to content

Commit

Permalink
SNESLINESEARCHBT: PetscInfo() for redundant print that changed exampl…
Browse files Browse the repository at this point in the history
…e output
  • Loading branch information
prbrune committed Jan 15, 2014
1 parent 08ed290 commit 3ba6482
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/snes/linesearch/impls/bt/linesearchbt.c
Expand Up @@ -178,11 +178,7 @@ static PetscErrorCode SNESLineSearchApply_BT(SNESLineSearch linesearch)
PetscFunctionReturn(0);
}
if (!objective) {
if (monitor) {
ierr = PetscViewerASCIIAddTab(monitor,((PetscObject)linesearch)->tablevel);CHKERRQ(ierr);
ierr = PetscViewerASCIIPrintf(monitor," Line search: Initial fnorm %14.12e gnorm %14.12e\n", (double)fnorm, (double)gnorm);CHKERRQ(ierr);
ierr = PetscViewerASCIISubtractTab(monitor,((PetscObject)linesearch)->tablevel);CHKERRQ(ierr);
}
ierr = PetscInfo2(snes,"Initial fnorm %14.12e gnorm %14.12e\n", (double)fnorm, (double)gnorm);CHKERRQ(ierr);
}
if (.5*g <= .5*f + lambda*alpha*initslope) { /* Sufficient reduction or step tolerance convergence */
if (monitor) {
Expand Down

0 comments on commit 3ba6482

Please sign in to comment.