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

PARAMETER can't be assigned during INITIAL. #1405

Open
1uc opened this issue Aug 21, 2024 · 0 comments
Open

PARAMETER can't be assigned during INITIAL. #1405

1uc opened this issue Aug 21, 2024 · 0 comments

Comments

@1uc
Copy link
Collaborator

1uc commented Aug 21, 2024

The following MOD file is legal in NOCMODL:

NEURON {
    SUFFIX initialize
}

PARAMETER {
    p
}

INITIAL {
    p = 42.0
}

The parameter is converted from a static double to a "thread variable". In NMODL it fails to compile with:

[NMODL] [error] :: Code incompatibility detected
[NMODL] [error] :: Cannot translate mod file to .cpp file
[NMODL] [error] :: Fix the following errors and try again
[NMODL] [error] :: Code Incompatibility :: "p" variable found at [UNKNOWN] should be writable if it needs to be written
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

No branches or pull requests

1 participant