Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit bf3c823

Browse files
author
WeinaJi
authored
override global seed with user provided one in CLI (#350)
1 parent 8ac2d6f commit bf3c823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coreneuron/apps/main1.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ void nrn_init_and_load_data(int argc,
179179
std::string filesdat(corenrn_param.datpath + "/" + corenrn_param.filesdat);
180180

181181
// read the global variable names and set their values from globals.dat
182-
set_globals(corenrn_param.datpath.c_str(), (corenrn_param.seed==0),
182+
set_globals(corenrn_param.datpath.c_str(), (corenrn_param.seed>=0),
183183
corenrn_param.seed);
184184

185185
// set global variables for start time, timestep and temperature

0 commit comments

Comments
 (0)