Closed sdwfrost closed 1 month ago
Thanks for reporting the issue. I have run into this before, and I lazily avoided the problem by changing the name of the variable to In
. See, for example, SIRdelay.vf
. That's not a very satisfactory work-around! I'm traveling for a couple weeks, but I'll take another look at this when I get back.
After another very long hiatus from work on vfgen, I'm back to making some updates. For this problem, I'm taking the easy way out and simply not allowing the name 'I'; see https://github.com/WarrenWeckesser/vfgen/commit/10316399e34d2c9ac5b433c23a5fe6cb64a835de.
Running the following XML,
sir_ode.vf
using
interprets the state variable I as imaginary:
This doesn't happen e.g. with R: