-
Notifications
You must be signed in to change notification settings - Fork 118
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
Disallow STATE variables being GLOBAL #1723
Conversation
* state variables can not be global, see #1479 (comment) * before code generation iterate through all symbols and error if there is any state variable declared as global.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; I assume you checked this on cadecay.mod.
Yes, it will give error like: cai is as a STATE variable and hence cannot be declared as GLOBAL at line 130 in file /..../some-dir/test.mod
^ |
Fix typo
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1723 +/- ##
=======================================
Coverage 45.30% 45.30%
=======================================
Files 551 551
Lines 111206 111213 +7
=======================================
+ Hits 50380 50386 +6
- Misses 60826 60827 +1 ☔ View full report in Codecov by Sentry. |
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
…nrn/pull/1723 (#1) * Avoid declaring (ion) state variables as global, see neuronsimulator/nrn/pull/1723 * update readme
UndefinedBehaviourSanitizer fixes #1479 (comment)
symbols and error if there is any state variable
declared as global.