Closed richfitz closed 1 year ago
Patch coverage: 100.00
% and no project coverage change
Comparison is base (
1a37d8b
) 100.00% compared to head (8d59ce3
) 100.00%.:exclamation: Current head 8d59ce3 differs from pull request most recent head 86a6983. Consider uploading reports for the commit 86a6983 to get more accurate results
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
Requires https://github.com/mrc-ide/odin/pull/282 - update the branch pin before merge.
Fairly straightforward implementation here following the C one in odin, with one small wrinkle: we can't use
Rprintf
from multithreaded code! To get around this we can detect if we're running in parallel withomp_in_parallel()
(this is true if we're in a block with more than one active thread), and then only evaluate that function if OpenMP is available!