Home
last modified time | relevance | path

Searched refs:hist_len (Results 1 – 3 of 3) sorted by relevance

/petsc/include/petsc/private/
H A Dtaoimpl.h177 PetscInt hist_len; member
193 if (tao->hist_max > tao->hist_len) { in TaoLogConvergenceHistory()
194 if (tao->hist_obj) tao->hist_obj[tao->hist_len] = obj; in TaoLogConvergenceHistory()
195 if (tao->hist_resid) tao->hist_resid[tao->hist_len] = resid; in TaoLogConvergenceHistory()
196 if (tao->hist_cnorm) tao->hist_cnorm[tao->hist_len] = cnorm; in TaoLogConvergenceHistory()
199 …PetscCheck(tao->hist_len >= 0, PetscObjectComm((PetscObject)tao), PETSC_ERR_ARG_WRONGSTATE, "Histo… in TaoLogConvergenceHistory()
200 for (PetscInt i = 0; i < tao->hist_len; i++) sits -= tao->hist_lits[i]; in TaoLogConvergenceHistory()
201 tao->hist_lits[tao->hist_len] = sits; in TaoLogConvergenceHistory()
203 tao->hist_len++; in TaoLogConvergenceHistory()
/petsc/src/tao/interface/
H A Dtaosolver.c1436 if (tao->hist_reset) tao->hist_len = 0; in TaoResetStatistics()
2595 tao->hist_len = 0; in TaoSetConvergenceHistory()
2641 if (nhist) *nhist = tao->hist_len; in TaoGetConvergenceHistory()
/petsc/src/ksp/ksp/impls/fetidp/
H A Dfetidp.c1167 PetscInt hist_len; in KSPSolve_FETIDP() local
1204 PetscCall(KSPGetResidualHistory(fetidp->innerksp, NULL, &hist_len)); in KSPSolve_FETIDP()
1205 ksp->res_hist_len = (size_t)hist_len; in KSPSolve_FETIDP()