Home
last modified time | relevance | path

Searched refs:niter (Results 1 – 25 of 39) sorted by relevance

12

/petsc/src/vec/is/sf/tests/
H A Dex4k.kokkos.cxx37 PetscInt i, j, n, nroots, nleaves, niter = 100, nskip = 10; in main() local
105 niter = loopSmall; in main()
108 niter = LAT_LOOP_SMALL; in main()
127 niter = LAT_LOOP_LARGE; in main()
131 for (i = 0; i < niter + nskip; i++) { in main()
145 time[j] = (t_end - t_start) * 1e6 / (niter * 2); in main()
H A Dex14.c15 const PetscInt niter = 10; in main() local
60 for (i = 0; i < niter; i++) { in main()
122 for (i = 0; i < niter; i++) { in main()
/petsc/src/tao/interface/
H A Dtaosolver.c34 snes_ewdummy->iter = tao->niter; in KSPPreSolve_TAOEW_Private()
183 tao->ntotalits += tao->niter; in TaoSolve()
191 …s %" PetscInt_FMT "\n", ((PetscObject)tao)->prefix, TaoConvergedReasons[tao->reason], tao->niter)); in TaoSolve()
193 …onverged due to %s iterations %" PetscInt_FMT "\n", TaoConvergedReasons[tao->reason], tao->niter)); in TaoSolve()
197 …n %" PetscInt_FMT "\n", ((PetscObject)tao)->prefix, TaoConvergedReasons[tao->reason], tao->niter)); in TaoSolve()
199 … converge due to %s iteration %" PetscInt_FMT "\n", TaoConvergedReasons[tao->reason], tao->niter)); in TaoSolve()
671 …cViewerASCIIPrintf(viewer, "total number of iterations=%" PetscInt_FMT ", ", tao->niter)); in TaoView()
1422 tao->niter = 0; in TaoResetStatistics()
1617 if (vf->view_interval > 0 && tao->niter % vf->view_interval) PetscFunctionReturn(PETSC_SUCCESS); in TaoMonitorDefault()
1625 if (tao->niter == 0 && ((PetscObject)tao)->prefix && !tao->header_printed) { in TaoMonitorDefault()
[all …]
/petsc/src/tao/complementarity/impls/ssls/
H A Dssils.c60 …PetscCall(PetscInfo(tao, "iter: %" PetscInt_FMT ", merit: %g, ndpsi: %g\n", tao->niter, (double)ss… in TaoSolve_SSILS()
63 PetscCall(TaoMonitor(tao, tao->niter, ssls->merit, ndpsi, 0.0, t)); in TaoSolve_SSILS()
68 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_SSILS()
69 tao->niter++; in TaoSolve_SSILS()
H A Dssfls.c47 …PetscCall(PetscInfo(tao, "iter: %" PetscInt_FMT ", merit: %g, ndpsi: %g\n", tao->niter, (double)ss… in TaoSolve_SSFLS()
50 PetscCall(TaoMonitor(tao, tao->niter, ssls->merit, ndpsi, 0.0, t)); in TaoSolve_SSFLS()
55 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_SSFLS()
56 tao->niter++; in TaoSolve_SSFLS()
/petsc/src/tao/bound/impls/bnk/
H A Dbnls.c107 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BNLS()
165 ++tao->niter; in TaoSolve_BNLS()
167 PetscCall(TaoMonitor(tao, tao->niter, bnk->f, resnorm, 0.0, steplen)); in TaoSolve_BNLS()
H A Dbntr.c108 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BNTR()
190 ++tao->niter; in TaoSolve_BNTR()
192 PetscCall(TaoMonitor(tao, tao->niter, bnk->f, resnorm, 0.0, steplen)); in TaoSolve_BNTR()
H A Dbntl.c126 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BNTL()
222 ++tao->niter; in TaoSolve_BNTL()
224 PetscCall(TaoMonitor(tao, tao->niter, bnk->f, resnorm, 0.0, steplen)); in TaoSolve_BNTL()
/petsc/src/ksp/ksp/tutorials/
H A Dex74.c73 PetscInt niter; /* number of time iterations */ member
104 ctxt.niter = 0; in main()
113 …PetscCall(PetscOptionsInt("-niter", "number of time steps", "<0>", ctxt.niter, &ctxt.niter, NULL)); in main()
129 PetscCall(ExactSolution(uex, &ctxt, ctxt.dt * ctxt.niter)); in main()
204 for (n = 0, time = 0., total_its = 0; n < ctxt.niter; n++) { in main()
232 …of time steps: %" PetscInt_FMT " (%" PetscInt_FMT " Krylov iterations)\n", ctxt.niter, total_its)); in main()
/petsc/src/tao/unconstrained/impls/bmrm/
H A Dbmrm.c340 PetscCall(TaoMonitor(tao, tao->niter, f, 1.0, 0.0, tao->step)); in TaoSolve_BMRM()
345 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BMRM()
357 PetscCall(ensure_df_space(tao->niter + 1, &df)); in TaoSolve_BMRM()
362 df.a[tao->niter] = 1.0; in TaoSolve_BMRM()
363 df.f[tao->niter] = -bt; in TaoSolve_BMRM()
364 df.u[tao->niter] = 1.0; in TaoSolve_BMRM()
365 df.l[tao->niter] = 0.0; in TaoSolve_BMRM()
369 for (i = 0; i <= tao->niter; i++) { in TaoSolve_BMRM()
372 df.Q[i][tao->niter] = df.Q[tao->niter][i] = reg / lambda; in TaoSolve_BMRM()
376 if (tao->niter > 0) { in TaoSolve_BMRM()
[all …]
/petsc/src/tao/complementarity/impls/asls/
H A Dasils.c134 …PetscCall(PetscInfo(tao, "iter %" PetscInt_FMT ", merit: %g, ||dpsi||: %g\n", tao->niter, (double)… in TaoSolve_ASILS()
136 PetscCall(TaoMonitor(tao, tao->niter, asls->merit, ndpsi, 0.0, t)); in TaoSolve_ASILS()
141 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_ASILS()
142 tao->niter++; in TaoSolve_ASILS()
243 …tscCall(PetscInfo(tao, "Iteration %" PetscInt_FMT ": newton direction not descent\n", tao->niter)); in TaoSolve_ASILS()
H A Dasfls.c137 …PetscCall(PetscInfo(tao, "iter %" PetscInt_FMT ", merit: %g, ||dpsi||: %g\n", tao->niter, (double)… in TaoSolve_ASFLS()
139 PetscCall(TaoMonitor(tao, tao->niter, asls->merit, ndpsi, 0.0, t)); in TaoSolve_ASFLS()
144 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_ASFLS()
145 tao->niter++; in TaoSolve_ASFLS()
248 …tscCall(PetscInfo(tao, "Iteration %" PetscInt_FMT ": newton direction not descent\n", tao->niter)); in TaoSolve_ASFLS()
/petsc/src/tao/unconstrained/impls/lmvm/
H A Dlmvm.c26 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_LMVM()
41 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_LMVM()
133 tao->niter++; in TaoSolve_LMVM()
135 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_LMVM()
/petsc/src/tao/unconstrained/impls/cg/
H A Dtaocg.c30 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_CG()
56 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_CG()
141 tao->niter++; in TaoSolve_CG()
143 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_CG()
/petsc/src/tao/bound/impls/tron/
H A Dtron.c104 PetscCall(TaoMonitor(tao, tao->niter, tron->f, tron->gnorm, 0.0, tron->stepsize)); in TaoSolve_TRON()
109 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_TRON()
134 PetscCall(TaoMonitor(tao, tao->niter, tron->f, tron->gnorm, 0.0, delta)); in TaoSolve_TRON()
225 tao->niter++; in TaoSolve_TRON()
227 PetscCall(TaoMonitor(tao, tao->niter, tron->f, tron->gnorm, 0.0, stepsize)); in TaoSolve_TRON()
/petsc/src/tao/unconstrained/impls/owlqn/
H A Dowlqn.c73 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_OWLQN()
89 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_OWLQN()
210 ++tao->niter; in TaoSolve_OWLQN()
212 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, step)); in TaoSolve_OWLQN()
/petsc/src/tao/bound/impls/blmvm/
H A Dblmvm.c27 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, stepsize)); in TaoSolve_BLMVM()
42 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BLMVM()
109 tao->niter++; in TaoSolve_BLMVM()
111 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, stepsize)); in TaoSolve_BLMVM()
/petsc/src/tao/unconstrained/impls/ntr/
H A Dntr.c98 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, 1.0)); in TaoSolve_NTR()
202 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, 1.0)); in TaoSolve_NTR()
224 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_NTR()
227 ++tao->niter; in TaoSolve_NTR()
411 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, tao->trust)); in TaoSolve_NTR()
426 PetscCall(TaoMonitor(tao, tao->niter, f, gnorm, 0.0, tao->trust)); in TaoSolve_NTR()
/petsc/lib/petsc/bin/maint/
H A Dgenerateetags.py63 niter = nfiles//1000
65 blocks = [i*1000 for i in range(niter+1)]
/petsc/src/tao/quadratic/impls/gpcg/
H A Dgpcg.c142 PetscCall(TaoMonitor(tao, tao->niter, f, gpcg->gnorm, 0.0, tao->step)); in TaoSolve_GPCG()
147 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_GPCG()
206 tao->niter++; in TaoSolve_GPCG()
211 PetscCall(TaoMonitor(tao, tao->niter, f, gpcg->gnorm, 0.0, tao->step)); in TaoSolve_GPCG()
/petsc/src/ts/tutorials/
H A Dex53.c66 PetscInt niter; /* Number of series term iterations in exact solutions */ member
449 PetscInt N = user->niter, m; in terzaghi_2d_u()
486 PetscInt N = user->niter, m; in terzaghi_2d_eps()
523 PetscInt N = user->niter, m; in terzaghi_2d_p()
561 PetscInt N = user->niter, m; in terzaghi_2d_u_t()
598 PetscInt N = user->niter, m; in terzaghi_2d_eps_t()
647 PetscInt N = user->niter, m; in terzaghi_2d_p_t()
683 PetscInt N = user->niter, n; in mandel_drainage_pressure()
721 PetscInt N = user->niter, n; in mandel_initial_u()
756 PetscInt N = user->niter, n; in mandel_initial_eps()
[all …]
/petsc/src/tao/unconstrained/impls/neldermead/
H A Dneldermead.c155 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_NM()
156 ++tao->niter; in TaoSolve_NM()
160 …PetscCall(TaoMonitor(tao, tao->niter, nm->f_values[nm->indices[0]], nm->f_values[nm->indices[nm->N… in TaoSolve_NM()
/petsc/src/tao/bound/impls/bncg/
H A Dbncg.c88 tao->niter = 0; in TaoSolve_BNCG()
101 PetscCall(TaoMonitor(tao, tao->niter, cg->f, resnorm, 0.0, step)); in TaoSolve_BNCG()
113 PetscUseTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_BNCG()
447 if (tao->niter >= 1 || tao->recycle) { in TaoBNCGStepDirectionUpdate()
458 if (tao->niter % (dim * cg->min_restart_num)) cg_restart = PETSC_TRUE; in TaoBNCGStepDirectionUpdate()
464 if (0 == tao->niter % (6 * dim)) cg_restart = PETSC_TRUE; in TaoBNCGStepDirectionUpdate()
889 if (!(tao->recycle && 0 == tao->niter)) { in TaoBNCGConductIteration()
959 PetscCall(TaoMonitor(tao, tao->niter, cg->f, resnorm, 0.0, step)); in TaoBNCGConductIteration()
977 ++tao->niter; in TaoBNCGConductIteration()
/petsc/src/tao/pde_constrained/impls/lcl/
H A Dlcl.c245 PetscCall(TaoMonitor(tao, tao->niter, f, mnorm, cnorm, step)); in TaoSolve_LCL()
250 PetscTryTypeMethod(tao, update, tao->niter, tao->user_update); in TaoSolve_LCL()
375 PetscCall(TaoMonitor(tao, tao->niter, f, mnorm, cnorm, step)); in TaoSolve_LCL()
431 if (tao->niter > 0) { in TaoSolve_LCL()
543 tao->niter++; in TaoSolve_LCL()
545 PetscCall(TaoMonitor(tao, tao->niter, f, mnorm, cnorm, step)); in TaoSolve_LCL()
/petsc/src/tao/leastsquares/impls/brgn/
H A Dbrgn.c231 gn->parent->niter = tao->niter; in GNHookFunction()
260 …if (gn->parent->ops->update) PetscCall((*gn->parent->ops->update)(gn->parent, gn->parent->niter, g… in GNHookFunction()
339 tao->niter = gn->subsolver->niter; in TaoSolve_BRGN()

12