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.

Suffix not set properly if NEURON block does not have a SUFFIX #1226

Description

@JCGoran

According to the NMODL spec:

If the SUFFIX statement is absent, the file name is used as the suffix (with the addition of an underscore character).

The following file creates a mod_suffix which is an empty string:

NEURON {
}

STATE { x }

INITIAL {
  x = 42
}

BREAKPOINT {
    SOLVE dX METHOD cnexp
}

DERIVATIVE dX { x' = -x }

This can be verified by looking at the generated cpp file, which has the following functions:

void nrn_init_
void nrn_state_
static void nrn_jacob_

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions