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

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant