gabrielgellner / DiffEQ.jl

Staging Area for a Differential Solver suite in Julia (DEAD)
Other
0 stars 0 forks source link

Solution object time/x variable name #11

Open gabrielgellner opened 9 years ago

gabrielgellner commented 9 years ago

Currently I am following the naming of ODE.jl which follows the naming from Matlab, which uses the input parameter tspan. Now this is problematic even in Matlab when you get the sol struct version back as it gives the fieldname as .x for this tout variable. Looking at codes like Dopri5.f I see that they use xspan which is a far more meaningful name. The only issue I see is that then in a sense you would want to document your codes with a call signature of function dydt(x, y) which feels a bit strange to me. Maybe I should just go all in on the tspan name and have the solution struct return .t for the fieldname? Yes. I am going to do this. The ODESolution will contain a .t field instead of .x.