mrc-ide / odin.dust

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

Allow use of real_t within data declarations #57

Closed richfitz closed 3 years ago

richfitz commented 3 years ago

We should be able to write:

// [[odin.dust::compare_data(icu = double)]]

(e.g., here: https://github.com/mrc-ide/sircovid/pull/206#discussion_r564392793) but this is not currently possible as real_t will not be resolved correctly. It might work with typename {{modelname}}::real_t if the user supplied the model name. But we already know this and should be able to do the translation ourselves

richfitz commented 3 years ago

This is fixed now