Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NMODL fails on simple ODE. #1129

Open
1uc opened this issue Dec 18, 2023 · 0 comments · May be fixed by #1418
Open

NMODL fails on simple ODE. #1129

1uc opened this issue Dec 18, 2023 · 0 comments · May be fixed by #1418

Comments

@1uc
Copy link
Collaborator

1uc commented Dec 18, 2023

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
@JCGoran JCGoran linked a pull request Aug 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant