Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Commit

Permalink
store evid
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Oct 11, 2023
1 parent 7542b1f commit 68fc48f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inst/include/rxode2parseSortInd.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ static inline void rxode2parse_sortInd(rx_solving_options_ind *ind) {
for (int i = 0; i < ind->n_all_times; i++) {
ind->ix[i] = i;
ind->idx = i;
if (!isObs(getEvid(ind, i))) {
int evid = getEvid(ind, i);
if (!isObs(evid)) {
time[i] = getTime__(ind->ix[i], ind, 1);
ind->ixds++;
} else {
if (getEvid(ind, i) == 3) {
if (evid == 3) {
ind->curShift -= rx->maxShift;
}
time[i] = getTime__(ind->ix[i], ind, 1);
}
/* REprintf("i: %d; evid: %d; %f -> %f\n", i, evid, getAllTimes(ind, i), time[i]); */
if (op->naTime == 1){
doSort=0;
break;
Expand Down

0 comments on commit 68fc48f

Please sign in to comment.