Skip to content

Transient loop considerations #1

@rvignolo

Description

@rvignolo

Are these lines:

wasora/src/wasora.c

Lines 303 to 304 in d80ca8a

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:

  1. Why is ida_step_t_new being set? It is going to be replaced when calling IDASolve.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions