Skip to content

Add explicit METHOD to SOLVE when target is a DERIVATIVE block #3601

@JCGoran

Description

@JCGoran

Overview of the feature

The following mod file is valid in NOCMODL:

NEURON {
    SUFFIX test
}

BREAKPOINT {
    SOLVE states
}

STATE {
    n
}

INITIAL {
    n = 1
}

DERIVATIVE states {
    n' = -n
}

Unfortunately, NMODL does not work:

[NMODL] [error] :: SympySolverVisitor :: Solve method  not supported
[NMODL] [error] :: NeuronSolveVisitor :: solver method '' not supported

NOCMODL actually implicitly converts the SOLVE states statement into SOLVE states METHOD derivimplicit. NMODL should match this behavior.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions