Skip to content

Use values computed in ODETerms inside of SaveAt #476

Description

@Ricky5389

Hi, I would like to save some values that are computed inside of my ODETerms. Is it possible to have the term output other things than the differential equations parameters ? For example, if my term looks like this.

def terms(t,y,args):
    y_dot = y + args
    args_changed = args / y_dot
    return y_dot

Would it be possible to save args_changed and use it inside of SaveAt? (This is a dummy example but it captures the idea)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions