Lines Matching refs:hist_id
6 PetscInt *hist_id; /* stores the stepid in time history */ member
27 PetscCall(PetscRealloc(tsh->c * sizeof(*tsh->hist_id), &tsh->hist_id)); in TSHistoryUpdate()
35 PetscCall(PetscArraycpy(ids, tsh->hist_id, tsh->n)); in TSHistoryUpdate()
43 tsh->hist_id[tsh->n] = id; in TSHistoryUpdate()
54 PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistoryGetTime()
69 PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistoryGetTimeStep()
83 PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistoryGetLocFromTime()
90 PetscErrorCode TSHistorySetHistory(TSHistory tsh, PetscInt n, PetscReal hist[], PetscInt hist_id[],… in TSHistorySetHistory() argument
97 PetscCall(PetscFree(tsh->hist_id)); in TSHistorySetHistory()
101 PetscCall(PetscMalloc1(tsh->n, &tsh->hist_id)); in TSHistorySetHistory()
104 tsh->hist_id[i] = hist_id ? hist_id[i] : i; in TSHistorySetHistory()
106 if (!sorted) PetscCall(PetscSortRealWithArrayInt(tsh->n, tsh->hist, tsh->hist_id)); in TSHistorySetHistory()
111 …ory(TSHistory tsh, PetscInt *n, const PetscReal *hist[], const PetscInt *hist_id[], PetscBool *sor… in TSHistoryGetHistory() argument
116 if (hist_id) *hist_id = tsh->hist_id; in TSHistoryGetHistory()
126 PetscCall(PetscFree((*tsh)->hist_id)); in TSHistoryDestroy()
147 PetscCall(PetscMalloc1(tsh->c, &tsh->hist_id)); in TSHistoryCreate()