Skip to content

Commit

Permalink
ind->tlastS[ind->cmt] != _time
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Dec 2, 2024
1 parent b19c0f1 commit e6ad0be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions inst/include/rxode2parseHandleEvid.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,10 @@ static inline void handleTlastInline(double *time, rx_solving_options_ind *ind)
} else {
evid = getEvid(ind, ind->ix[ind->idx]);
}
if (op->neq + op->extraCmt != 0 && ind->tlastS[ind->cmt] != _time &&
if (op->neq + op->extraCmt != 0 &&
isDose(evid) &&
ind->cmt < op->neq + op->extraCmt) {
ind->cmt < op->neq + op->extraCmt &&
ind->tlastS[ind->cmt] != _time) {
double curDose = getDoseIndex(ind, ind->idx), tinf = NA_REAL;
if (handleTlastInlineUpateDosingInformation(ind, &curDose, &tinf) == 0) return;
ind->dosenum++;
Expand Down

0 comments on commit e6ad0be

Please sign in to comment.