Searched refs:hist_id (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/ts/interface/ |
| H A D | tshistory.c | 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() [all …]
|