-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into qa/clean-up-load-ba…
…lance
- Loading branch information
Showing
17 changed files
with
280 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,15 @@ | ||
NEURON { | ||
SUFFIX decay | ||
USEION x WRITE xd | ||
RANGE F, tau | ||
RANGE tau | ||
} | ||
|
||
PARAMETER { tau = 5 } | ||
|
||
INITIAL { F = xd } | ||
|
||
STATE { F } | ||
|
||
BREAKPOINT { | ||
SOLVE dF METHOD cnexp | ||
xd = F | ||
SOLVE dX METHOD cnexp | ||
} | ||
|
||
DERIVATIVE dF { | ||
F = xd | ||
F' = -tau*F | ||
DERIVATIVE dX { | ||
xd' = -tau*xd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NEURON { SUFFIX test_derivative_alternating } | ||
|
||
STATE { A B } | ||
|
||
BREAKPOINT { : NOTE we need a newline here :/ | ||
SOLVE foobar METHOD sparse | ||
} | ||
|
||
: NOTE this is OK to do, while alternating normal and reaction statements is not! | ||
|
||
DERIVATIVE foobar { | ||
LOCAL x | ||
|
||
x = 23*v | ||
|
||
A' = B*x | ||
|
||
x = sin(x) | ||
|
||
B' = x*A | ||
} |
18 changes: 18 additions & 0 deletions
18
test/unit-modcc/mod_files/test_alternating_differential.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
NEURON { SUFFIX test_kinetic_alternating_differential } | ||
|
||
STATE { A B C D } | ||
|
||
BREAKPOINT { : NOTE we need a newline here :/ | ||
SOLVE foobar METHOD sparse | ||
} | ||
|
||
KINETIC foobar { | ||
LOCAL x, y | ||
|
||
x = 23*v | ||
y = 42*v | ||
|
||
~ A <-> B (x, y) | ||
C' = 0.1 | ||
~ C <-> D (x, y) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NEURON { SUFFIX test_kinetic_alternating_reaction } | ||
|
||
STATE { A B C D } | ||
|
||
BREAKPOINT { : NOTE we need a newline here :/ | ||
SOLVE foobar METHOD sparse | ||
} | ||
|
||
KINETIC foobar { | ||
LOCAL x, y | ||
|
||
x = 23*v | ||
y = 42*v | ||
|
||
~ A <-> B (x, y) | ||
|
||
x = sin(y) | ||
y = cos(x) | ||
|
||
~ C <-> D (x, y) | ||
} |
21 changes: 21 additions & 0 deletions
21
test/unit-modcc/mod_files/test_kinetic_under_conditional.mod
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
NEURON { SUFFIX test_kinetic_under_conditional } | ||
|
||
STATE { A B } | ||
|
||
BREAKPOINT { : NOTE we need a newline here :/ | ||
SOLVE foobar METHOD sparse | ||
} | ||
|
||
KINETIC foobar { | ||
LOCAL x, y | ||
|
||
x = 23*v | ||
y = 42*v | ||
|
||
if (v<0) { | ||
~ A <-> B (x, y) | ||
} | ||
else { | ||
~ A <-> B (y, x) | ||
} | ||
} |
Oops, something went wrong.