Are these lines:
|
ida_step_t_new = wasora_var(wasora_special_var(time))+wasora_var(wasora_special_var(min_dt)); |
|
err = IDASolve(wasora_dae.system, wasora_var(wasora_special_var(dt)), &ida_step_t_new, wasora_dae.x, wasora_dae.dxdt, IDA_ONE_STEP); |
correct?
I see the following issues:
- Why is
ida_step_t_new being set? It is going to be replaced when calling IDASolve.
- If I am not mistaken, the second argument for
IDASolve should be wasora_var(wasora_special_var(time)) + wasora_var(wasora_special_var(min_dt)), not wasora_var(wasora_special_var(dt)). The User Documentation for IDA says that this argument corresponds to the next time at which a computed solution is desired. However, if the IDA_ONE_STEP mode is set (as in this case), this variable is used on the first call only, and only to get the direction and rough scale of the independent variable. I still believe it should be set as recommended.
Thanks and regards,
Ramiro.
Are these lines:
wasora/src/wasora.c
Lines 303 to 304 in d80ca8a
correct?
I see the following issues:
ida_step_t_newbeing set? It is going to be replaced when callingIDASolve.IDASolveshould bewasora_var(wasora_special_var(time)) + wasora_var(wasora_special_var(min_dt)), notwasora_var(wasora_special_var(dt)). The User Documentation for IDA says that this argument corresponds to the next time at which a computed solution is desired. However, if theIDA_ONE_STEPmode is set (as in this case), this variable is used on the first call only, and only to get the direction and rough scale of the independent variable. I still believe it should be set as recommended.Thanks and regards,
Ramiro.