mrc-ide / odin.dust

Compile odin to dust
https://mrc-ide.github.io/odin.dust
Other
3 stars 1 forks source link

typo in docs #122

Open lwhittles opened 1 year ago

lwhittles commented 1 year ago

https://github.com/mrc-ide/odin.dust/blob/5c06e93d5f85c7ef91b669240bad9ae805d29c68/vignettes/porting.Rmd#L152

I think this should read

K <- if (as.integer(step) >= length(K_step)) K_step[length(K_step)] else K_step[step + 1]