Skip to content

Commit 79e681d

Browse files
authored
Merge pull request #1216 from metrumresearchgroup/release/1.5.0
Release/1.5.0
2 parents 6d4b0c1 + 8485288 commit 79e681d

File tree

4 files changed

+29
-5
lines changed

4 files changed

+29
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Type: Package
22
Package: mrgsolve
33
Title: Simulate from ODE-Based Models
4-
Version: 1.4.2.9001
4+
Version: 1.5.0
55
Authors@R:
66
c(person(given = "Kyle T", family = "Baron",
77
role = c("aut", "cre"),

NEWS.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
1-
# mrgsolve (development version)
1+
# mrgsolve 1.5.0
2+
3+
- New functions `mwrite_yaml()` and `mwrite_cpp()` can write a model object back
4+
to a file, accounting for all updates since the model was read from native
5+
mrgsolve format using `mread()` (#1190, #1213).
6+
7+
- New function `mread_yaml()` for reading back models written out with
8+
`mwrite_yaml()` (#1190, #1213).
9+
10+
- New functions in `evtools` plugin: `evt::replace()` works like `evt::bolus()`,
11+
but will replace the amount in a given compartment rather than add to it
12+
(#1203).
13+
14+
- The `nm-vars` plugin now exposes `DEXP()`, `LOG10()`, `COS()` and `SIN()`
15+
for use in the mrgsolve C++ code blocks (#1199).
16+
17+
- An error is now generated when `KA` is equal to `CL/VC` while simulating from
18+
the one-compartment model with analytical solution invoked through
19+
`$PKMODEL` (#1179, #1197).
20+
21+
22+
## Bugs Fixed
23+
24+
- A bug was fixed when certain data frame inputs were passed to `as_data_set()`
25+
(#1115, #1196).
226

327
# mrgsolve 1.4.2
428

inst/include/datarecord.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ struct CompRec {
161161
}
162162
};
163163

164-
void insert_record(reclist& thisi, const int start, rec_ptr& rec,
164+
void insert_record(reclist& thisi, const size_t start, rec_ptr& rec,
165165
const bool put_ev_first);
166166

167167
#endif

src/datarecord.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,10 @@ void datarecord::schedule(reclist& thisi, double maxtime,
592592
* infusion end.
593593
*
594594
*/
595-
void insert_record(reclist& thisi, const int start, rec_ptr& rec,
595+
void insert_record(reclist& thisi, const size_t start, rec_ptr& rec,
596596
const bool put_ev_first) {
597597
double time = rec->time();
598-
int i = start;
598+
size_t i = start;
599599
if(put_ev_first) {
600600
for(i = start + 1; i < thisi.size(); ++i) {
601601
if(thisi[i]->time() >= time) {

0 commit comments

Comments
 (0)