Skip to content

Instantly share code, notes, and snippets.

@metelkin
Last active June 17, 2019 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save metelkin/61941a7b593bbab2fcaf18cb9f5567d5 to your computer and use it in GitHub Desktop.
Save metelkin/61941a7b593bbab2fcaf18cb9f5567d5 to your computer and use it in GitHub Desktop.
starting mrgsolve
f = function(){
mod %>%
mrgsim(delta=0.1, maxsteps=5e4, hmax=0.001, hmin=0) %>%
plot()
}
(f2 <- microbenchmark(f(), times = 5L))
library(mrgsolve)
library(withr)
with_dir("Y:/_temp/elli_galya/dist/th1_mrgsolve", {
mod <- mread("default.cpp")
})
mod %>%
mrgsim(delta=0.1, maxsteps=5e4, hmax=0.001, hmin=0) %>%
plot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment