Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

C++ compatibility for NEURON 9 #1

Merged
merged 2 commits into from
May 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions README.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,7 @@
produce traces in Fig 4 and data points for Figs. 6C and 8
<p/><img src="./screenshot.png" alt="screenshot">
</p>
<p>
<b>Changelog:</b><br>
2022-05: Updated MOD files to contain valid C++ and be compatible with the upcoming versions 8.2 and 9.0 of NEURON.
</html>
2 changes: 1 addition & 1 deletion afhcsyn_i0.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ENDCOMMENT

VERBATIM
extern double du_dev0( );
extern double dexp_dev( );
extern double dexp_dev(double);
ENDVERBATIM

NEURON {
Expand Down
4 changes: 2 additions & 2 deletions hc1.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Fires as Poisson process with rate constant tau
ENDCOMMENT

VERBATIM
extern double du_dev0( );
extern double dexp_dev( );
double du_dev0();
double dexp_dev(double);
ENDVERBATIM

NEURON {
Expand Down
2 changes: 1 addition & 1 deletion random.mod
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ extern double dexp_dev( double lambda );
extern double dgauss_dev0();
extern double dgauss_dev( double mean, double sdev );
extern int igeom_dev( double pg );
double ran2(); /* ran2 not to be used elsewhere */
double ran2(long*); /* ran2 not to be used elsewhere */

ENDVERBATIM

Expand Down
7 changes: 5 additions & 2 deletions ribbon1.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ alpha(t) = t/tau * exp( -t/tau )
ENDCOMMENT

VERBATIM
extern double du_dev0( );
extern double dexp_dev( );
/* defined in random.mod */
double du_dev0();
double dexp_dev(double);
int igeom_dev(double);
ENDVERBATIM


NEURON {
POINT_PROCESS ribbon1
RANGE i, del, xp, yp, zp, dist, tau, sw
Expand Down