Skip to content
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

fix rand.mod for neuron v9.0 compatibility #2

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
6 changes: 5 additions & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,8 @@ ICAN_destexhe.mod as per "Integration methods for SOLVE statements"
topic in the NEURON forum
http://www.neuron.yale.edu/phpBB/viewtopic.php?f=28&t=592
-ModelDB Administrator
2022-05-16 Make snsarr.inc valid with Neuron 9.0

Changelog
---------
2022-05: Updated MOD files to contain valid C++ and be compatible
with the upcoming versions 8.2 and 9.0 of NEURON.
4 changes: 1 addition & 3 deletions rand.mod
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ NEURON {
VERBATIM
#include <stdlib.h>
#include <math.h>
/* #include <values.h> /* contains MAXLONG */
#include <limits.h> /* contains MAXLONG */
/* Michael Hines fix for cygwin on mswin */
#if !defined(MAXLONG)
Expand Down Expand Up @@ -85,7 +84,7 @@ FUNCTION fran(l, h) { : returns random number between low and high
VERBATIM
{
int low, high;
double num, imax, *getarg();
double num, imax;

low = (int)_ll;
high = (int)_lh;
Expand All @@ -109,7 +108,6 @@ VERBATIM
static int iset = 0;
static float gset;
float fac, r , v1, v2;
double sqrt();

if (iset == 0) {
do {
Expand Down