Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Missing PRCELLSTATE declarations in some mod files #83

@iomaganaris

Description

@iomaganaris

For some mod files like https://github.com/BlueBrain/CoreNeuron/blob/master/coreneuron/mechanism/mech/modfile/passive.mod the generated c++ code has an empty nrn_state function that doesn't have the PRCELLSTATE macro to update the v_unused variable of the mechanism similar to NMODL.
This has as a consequence on the prcellstate the v_unused variable for this mechanism to be different between mod2c and NMODL.
Instead of not printing anything in the nrn_state function, if the CORENRN_ENABLE_PRCELLSTATE CMake variable is set, modc should print the code needed to update the v_unused variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions