Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

NMODL fails on simple ODE. #1129

@1uc

Description

@1uc

The following MOD file

NEURON {
    SUFFIX leonhard
}

STATE {
 x
}

INITIAL {
  x = 42
}

BREAKPOINT {
    SOLVE dX METHOD cnexp
}

DERIVATIVE dX {
 x' = sin(x*x)
}

fails as follows:

$ nmodl leonhard.mod host sympy --analytic
terminate called after throwing an instance of 'std::runtime_error'
  what():  NMODL Parser Error : syntax error, unexpected / [Location : 1.25]
------------------------^

$ nmodl leonhard.mod --verbose debug host sympy --analytic
[NMODL] [debug] :: SympySolverVisitor :: -> solution: x = // Not supported in C:
// Integral
dt + Integral(1/sin(_y**2), (_y, x))
libc++abi: terminating with uncaught exception of type std::runtime_error: NMODL Parser Error : syntax error, unexpected / [Location : 1.25]
------------------------^

[1]    68964 abort      PYTHONPATH=./lib/ ./bin/nmodl test.mod --verbose debug host sympy --analytic

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