Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,13 @@ FUNCTION unirand() { : uniform random numbers between 0 and 1
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -655,7 +660,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -671,4 +676,4 @@ VERBATIM
*pv4 = (void*)0;
}
ENDVERBATIM
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,13 @@ FUNCTION sfunc (v (mV)) {
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -289,7 +294,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -308,4 +313,4 @@ ENDVERBATIM
}
:FUNCTION unirand() { : uniform random numbers between 0 and 1
: unirand = scop_random()
:}
:}
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ VERBATIM
#include<stdio.h>
#include<math.h>

#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif

ENDVERBATIM

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,13 @@ FUNCTION unirand() { : uniform random numbers between 0 and 1
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -655,7 +660,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -671,4 +676,4 @@ VERBATIM
*pv4 = (void*)0;
}
ENDVERBATIM
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,13 @@ FUNCTION sfunc (v (mV)) {
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -289,7 +294,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -308,4 +313,4 @@ ENDVERBATIM
}
:FUNCTION unirand() { : uniform random numbers between 0 and 1
: unirand = scop_random()
:}
:}
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,13 @@ FUNCTION unirand() { : uniform random numbers between 0 and 1
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -655,7 +660,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ VERBATIM
#include<stdio.h>
#include<math.h>

#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif

ENDVERBATIM

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -643,8 +643,13 @@ FUNCTION unirand() { : uniform random numbers between 0 and 1
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -655,7 +660,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -671,4 +676,4 @@ VERBATIM
*pv4 = (void*)0;
}
ENDVERBATIM
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,13 @@ FUNCTION sfunc (v (mV)) {
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand Down Expand Up @@ -308,4 +313,4 @@ ENDVERBATIM
}
:FUNCTION unirand() { : uniform random numbers between 0 and 1
: unirand = scop_random()
:}
:}
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,13 @@ FUNCTION sfunc (v (mV)) {
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -235,7 +240,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,13 @@ FUNCTION omega(Cani (mM), threshold1 (uM), threshold2 (uM)) {
}

VERBATIM
#ifndef NRN_VERSION_GTEQ_8_2_0
double nrn_random_pick(void* r);
void* nrn_random_arg(int argpos);
#define RANDCAST
#else
#define RANDCAST (Rand*)
#endif
ENDVERBATIM

FUNCTION randGen() {
Expand All @@ -298,7 +303,7 @@ VERBATIM
: each instance. However, the corresponding hoc Random
: distribution MUST be set to Random.uniform(0,1)
*/
_lrandGen = nrn_random_pick(_p_randObjPtr);
_lrandGen = nrn_random_pick(RANDCAST _p_randObjPtr);
}else{
hoc_execerror("Random object ref not set correctly for randObjPtr"," only via hoc Random");
}
Expand All @@ -314,4 +319,4 @@ VERBATIM
*pv4 = (void*)0;
}
ENDVERBATIM
}
}
Loading