metrumresearchgroup / mrgsolve

Simulate from ODE-based population PK/PD and QSP models in R
https://mrgsolve.org
GNU General Public License v2.0
132 stars 36 forks source link

Infusion from inside model scheduled for "now" doesn't turn off #1123

Closed kylebaron closed 11 months ago

kylebaron commented 1 year ago

This infusion won't turn off.

  mrg::evdata ev(TIME, 1);   
  ev.cmt = 1;              
  ev.amt = 100;
  ev.rate = 50;           
  ev.now = true;
  self.mevector.push_back(ev);