-
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 branch 'master' into tests_for_particle_diffusion
- Loading branch information
Showing
12 changed files
with
246 additions
and
7 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
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) | ||
} | ||
} |
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,15 @@ | ||
NEURON { SUFFIX test_misplaced_reaction } | ||
|
||
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 | ||
|
||
~ A <-> B (x, 1/x) | ||
} |
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