Lines Matching refs:vf

373     PetscViewerAndFormat *vf;  in TaoMonitorSetFromOptions()  local
377 PetscCall(PetscViewerAndFormatCreate(viewer, format, &vf)); in TaoMonitorSetFromOptions()
378 vf->view_interval = 1; in TaoMonitorSetFromOptions()
379 …nt(((PetscObject)tao)->options, ((PetscObject)tao)->prefix, interval_key, &vf->view_interval, NULL… in TaoMonitorSetFromOptions()
382 …PetscCall(TaoMonitorSet(tao, (PetscErrorCode (*)(Tao, PetscCtx))monitor, vf, (PetscCtxDestroyFn *)… in TaoMonitorSetFromOptions()
1609 PetscErrorCode TaoMonitorDefault(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorDefault() argument
1611 PetscViewer viewer = vf->viewer; in TaoMonitorDefault()
1617 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorDefault()
1620 PetscCall(PetscViewerPushFormat(viewer, vf->format)); in TaoMonitorDefault()
1663 PetscErrorCode TaoMonitorGlobalization(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorGlobalization() argument
1665 PetscViewer viewer = vf->viewer; in TaoMonitorGlobalization()
1671 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorGlobalization()
1674 PetscCall(PetscViewerPushFormat(viewer, vf->format)); in TaoMonitorGlobalization()
1719 PetscErrorCode TaoMonitorDefaultShort(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorDefaultShort() argument
1721 PetscViewer viewer = vf->viewer; in TaoMonitorDefaultShort()
1728 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorDefaultShort()
1732 PetscCall(PetscViewerPushFormat(viewer, vf->format)); in TaoMonitorDefaultShort()
1770 PetscErrorCode TaoMonitorConstraintNorm(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorConstraintNorm() argument
1772 PetscViewer viewer = vf->viewer; in TaoMonitorConstraintNorm()
1778 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorConstraintNorm()
1781 PetscCall(PetscViewerPushFormat(viewer, vf->format)); in TaoMonitorConstraintNorm()
1811 PetscErrorCode TaoMonitorSolution(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorSolution() argument
1815 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorSolution()
1816 PetscCall(PetscViewerPushFormat(vf->viewer, vf->format)); in TaoMonitorSolution()
1817 PetscCall(VecView(tao->gradient, vf->viewer)); in TaoMonitorSolution()
1818 PetscCall(PetscViewerPopFormat(vf->viewer)); in TaoMonitorSolution()
1838 PetscErrorCode TaoMonitorGradient(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorGradient() argument
1842 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorGradient()
1843 PetscCall(PetscViewerPushFormat(vf->viewer, vf->format)); in TaoMonitorGradient()
1844 PetscCall(VecView(tao->gradient, vf->viewer)); in TaoMonitorGradient()
1845 PetscCall(PetscViewerPopFormat(vf->viewer)); in TaoMonitorGradient()
1865 PetscErrorCode TaoMonitorStep(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorStep() argument
1869 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorStep()
1870 PetscCall(PetscViewerPushFormat(vf->viewer, vf->format)); in TaoMonitorStep()
1871 PetscCall(VecView(tao->stepdirection, vf->viewer)); in TaoMonitorStep()
1872 PetscCall(PetscViewerPopFormat(vf->viewer)); in TaoMonitorStep()
1978 PetscErrorCode TaoMonitorResidual(Tao tao, PetscViewerAndFormat *vf) in TaoMonitorResidual() argument
1982 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorResidual()
1983 PetscCall(PetscViewerPushFormat(vf->viewer, vf->format)); in TaoMonitorResidual()
1984 PetscCall(VecView(tao->ls_res, vf->viewer)); in TaoMonitorResidual()
1985 PetscCall(PetscViewerPopFormat(vf->viewer)); in TaoMonitorResidual()