Lines Matching refs:sorted
8 PetscBool sorted; /* if the history is sorted in ascending order */ member
29 …tsh->sorted = (PetscBool)(tsh->sorted && (tsh->n ? (PetscBool)(time >= tsh->hist[tsh->n - 1]) : PE… in TSHistoryUpdate()
53 if (!tsh->sorted) { in TSHistoryGetTime()
55 tsh->sorted = PETSC_TRUE; in TSHistoryGetTime()
68 if (!tsh->sorted) { in TSHistoryGetTimeStep()
70 tsh->sorted = PETSC_TRUE; in TSHistoryGetTimeStep()
82 if (!tsh->sorted) { in TSHistoryGetLocFromTime()
84 tsh->sorted = PETSC_TRUE; in TSHistoryGetLocFromTime()
90 …istorySetHistory(TSHistory tsh, PetscInt n, PetscReal hist[], PetscInt hist_id[], PetscBool sorted) in TSHistorySetHistory() argument
106 if (!sorted) PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistorySetHistory()
107 tsh->sorted = PETSC_TRUE; in TSHistorySetHistory()
111 …(TSHistory tsh, PetscInt *n, const PetscReal *hist[], const PetscInt *hist_id[], PetscBool *sorted) in TSHistoryGetHistory() argument
117 if (sorted) *sorted = tsh->sorted; in TSHistoryGetHistory()
144 tsh->sorted = PETSC_TRUE; in TSHistoryCreate()