Skip to content

UndefVarError when solving MethodOfLines generated ODE #189

@aditya-sengupta

Description

@aditya-sengupta

I'm implementing a MOL discretization largely following the Brusselator PDE tutorial, and just after generating a discretized ODE, the call to solve results in an UndefVarError: v not defined with a long stack trace. The only thing I can think of that might cause this from the script is if I didn't add v(x,t) instead of just v anywhere in the equations/BCs, but I think I've done that. The stack trace involves a lot of RuntimeGeneratedFunctions that presumably come from this package, so it's hard to parse where the missing variable may be, but I think it's within the discretization.

Script: https://pastebin.com/ZfHxPmE8
Traceback: https://pastebin.com/wksJe5MM

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