Home
last modified time | relevance | path

Searched refs:hist (Results 1 – 16 of 16) sorted by relevance

/petsc/src/sys/classes/draw/utils/
H A Dhists.c58 PetscErrorCode PetscDrawHGCreate(PetscDraw draw, int bins, PetscDrawHG *hist) in PetscDrawHGCreate() argument
65 PetscAssertPointer(hist, 3); in PetscDrawHGCreate()
86 *hist = h; in PetscDrawHGCreate()
103 PetscErrorCode PetscDrawHGSetNumberBins(PetscDrawHG hist, int bins) in PetscDrawHGSetNumberBins() argument
106 PetscValidHeaderSpecific(hist, PETSC_DRAWHG_CLASSID, 1); in PetscDrawHGSetNumberBins()
107 PetscValidLogicalCollectiveInt(hist, bins, 2); in PetscDrawHGSetNumberBins()
109 if (hist->maxBins < bins) { in PetscDrawHGSetNumberBins()
110 PetscCall(PetscFree(hist->bins)); in PetscDrawHGSetNumberBins()
111 PetscCall(PetscMalloc1(bins, &hist->bins)); in PetscDrawHGSetNumberBins()
112 hist->maxBins = bins; in PetscDrawHGSetNumberBins()
[all …]
/petsc/src/ts/interface/
H A Dtshistory.c5 PetscReal *hist; /* time history */ member
26 PetscCall(PetscRealloc(tsh->c * sizeof(*tsh->hist), &tsh->hist)); in TSHistoryUpdate()
29 …tsh->sorted = (PetscBool)(tsh->sorted && (tsh->n ? (PetscBool)(time >= tsh->hist[tsh->n - 1]) : PE… in TSHistoryUpdate()
42 tsh->hist[tsh->n] = time; in TSHistoryUpdate()
54 PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistoryGetTime()
58 if (!backward) *t = tsh->hist[step]; in TSHistoryGetTime()
59 else *t = tsh->hist[tsh->n - step - 1]; in TSHistoryGetTime()
69 PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistoryGetTimeStep()
73 …if (!backward) *dt = tsh->hist[PetscMin(step + 1, tsh->n - 1)] - tsh->hist[PetscMin(step, tsh->n -… in TSHistoryGetTimeStep()
74 else *dt = tsh->hist[PetscMax(tsh->n - step - 1, 0)] - tsh->hist[PetscMax(tsh->n - step - 2, 0)]; in TSHistoryGetTimeStep()
[all …]
/petsc/src/ts/adapt/impls/history/
H A Dadapthist.c4 TSHistory hist; member
14 …PetscCheck(thadapt->hist, PetscObjectComm((PetscObject)adapt), PETSC_ERR_ORDER, "Need to call TSAd… in TSAdaptChoose_History()
16 PetscCall(TSHistoryGetTimeStep(thadapt->hist, thadapt->bw, step + 1, next_h)); in TSAdaptChoose_History()
30 PetscCall(TSHistoryDestroy(&thadapt->hist)); in TSAdaptReset_History()
43 PetscErrorCode TSAdaptHistorySetTSHistory(TSAdapt adapt, TSHistory hist, PetscBool backward) in TSAdaptHistorySetTSHistory() argument
54 PetscCall(TSHistoryGetHistory(hist, &n, (const PetscReal **)&hist_t, NULL, NULL)); in TSAdaptHistorySetTSHistory()
90 PetscCall(TSHistoryGetTimeStep(thadapt->hist, thadapt->bw, step, dt)); in TSAdaptHistoryGetStep()
91 PetscCall(TSHistoryGetTime(thadapt->hist, thadapt->bw, step, t)); in TSAdaptHistoryGetStep()
113 PetscErrorCode TSAdaptHistorySetHistory(TSAdapt adapt, PetscInt n, PetscReal hist[], PetscBool back… in TSAdaptHistorySetHistory() argument
121 PetscAssertPointer(hist, 3); in TSAdaptHistorySetHistory()
[all …]
/petsc/src/sys/classes/draw/tests/
H A Dex9.c9 PetscDrawHG hist; in main() local
43 PetscCall(PetscDrawHGCreate(draw, bins, &hist)); in main()
44 PetscCall(PetscDrawHGSetColor(hist, color)); in main()
45 PetscCall(PetscDrawHGGetAxis(hist, &axis)); in main()
52 PetscCall(PetscDrawHGAddValue(hist, xd * xd)); in main()
54 PetscCall(PetscDrawHGDraw(hist)); in main()
55 PetscCall(PetscDrawHGSave(hist)); in main()
57 PetscCall(PetscDrawHGDestroy(&hist)); in main()
/petsc/src/ksp/ksp/interface/ftn-custom/
H A Dzitfuncf90.c12 PetscReal const *hist; in kspgetresidualhistory_() local
13 *ierr = KSPGetResidualHistory(*ksp, &hist, n); in kspgetresidualhistory_()
15 *ierr = F90Array1dCreate((void *)hist, MPIU_REAL, 1, *n, indices PETSC_F90_2PTR_PARAM(ptrd)); in kspgetresidualhistory_()
/petsc/src/snes/interface/ftn-custom/
H A Dzsnesf90.c14 PetscReal *hist; in snesgetconvergencehistory_() local
18 *ierr = SNESGetConvergenceHistory(*snes, &hist, &its, &N); in snesgetconvergencehistory_()
20 *ierr = F90Array1dCreate(hist, MPIU_REAL, 1, N, r PETSC_F90_2PTR_PARAM(ptrd1)); in snesgetconvergencehistory_()
/petsc/src/ts/tutorials/
H A Dex40.c167 PetscBool rhs_form = PETSC_FALSE, hist = PETSC_TRUE; in main() local
182 PetscCall(PetscOptionsBool("-test_adapthistory", "", "", hist, &hist, NULL)); in main()
230 if (hist) PetscCall(TSSetSaveTrajectory(ts)); in main()
252 if (hist) { /* replay following history */ in main()
H A Dex41.c167 PetscBool rhs_form = PETSC_FALSE, hist = PETSC_TRUE; in main() local
237 if (hist) { /* replay following history */ in main()
/petsc/src/tao/leastsquares/tutorials/
H A Dtomography.c51 PetscReal hist[100], resid[100], v1, v2; in main() local
100 PetscCall(TaoSetConvergenceHistory(tao, hist, resid, 0, lits, 100, PETSC_TRUE)); in main()
H A Dcs1.c132 PetscReal hist[100], resid[100]; in main() local
178 PetscCall(TaoSetConvergenceHistory(tao, hist, resid, 0, lits, 100, PETSC_TRUE)); in main()
H A Dchwirut1.c52 PetscReal hist[100], resid[100]; in main() local
83 PetscCall(TaoSetConvergenceHistory(tao, hist, resid, 0, lits, 100, PETSC_TRUE)); in main()
H A Dchwirut1f.F90310 PetscReal hist(100) ! objective value history
349 PetscCallA(TaoSetConvergenceHistory(ta, hist, resid, cnorm, lits, oh, PETSC_TRUE, ierr))
/petsc/src/tao/leastsquares/tests/
H A Dchwirut2.c55 PetscReal hist[100], resid[100]; in main() local
108 PetscCall(TaoSetConvergenceHistory(tao, hist, resid, 0, lits, 100, PETSC_TRUE)); in main()
/petsc/src/ksp/ksp/interface/
H A Ditfunc.c2616 PetscReal const *hist; in KSPComputeConvergenceRate() local
2622 PetscCall(KSPGetResidualHistory(ksp, &hist, &n)); in KSPComputeConvergenceRate()
2630 y[k] = PetscLogReal(hist[k]); in KSPComputeConvergenceRate()
2645 PetscCall(KSPGetErrorHistory(ksp, &hist, &n)); in KSPComputeConvergenceRate()
2653 y[k] = PetscLogReal(hist[k]); in KSPComputeConvergenceRate()
/petsc/src/binding/petsc4py/src/petsc4py/PETSc/
H A DKSP.pyx1198 cdef object hist = oarray_r(empty_r(size), NULL, &data)
1199 self.set_attr('__history__', hist)
/petsc/share/petsc/datafiles/meshes/
H A Dtestcase3D.cas5478 (morpher/monitor/opt-hist/filename "opt-history")
5479 (morpher/monitor/opt-hist/write? #f)
5480 (morpher/monitor/opt-hist/window -1)
5481 (morpher/monitor/opt-hist/plot? #f)
7432 (partition/laplace/hist/use-ratio-cutoff? #f)
7433 (partition/laplace/hist/cutoff 70)
7434 (partition/laplace/hist/nbins 100)
7435 (partition/laplace/hist/spacing "auto")