Skip to content

Commit

Permalink
Change the tlast handling to be based on tlast per cmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfidler committed Dec 2, 2024
1 parent 9d3106f commit 4df9e6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inst/include/rxode2parseHandleEvid.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ 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->tlast != _time &&
if (op->neq + op->extraCmt != 0 && ind->tlastS[ind->cmt] != _time &&
isDose(evid) &&
ind->cmt < op->neq + op->extraCmt) {
double curDose = getDoseIndex(ind, ind->idx), tinf = NA_REAL;
Expand Down

0 comments on commit 4df9e6d

Please sign in to comment.