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

Add CLI option for prcellstate #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
1 change: 1 addition & 0 deletions common.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ proc prun() { localobj po
if(use_coreneuron_gpu) {
po.coreneuron.gpu = 1
}
po.coreneuron.prcellstate = use_prcellstate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add the same for NEURON with pc.prcellstate(gid, "suffix")?

if(pc.id == 0) {
printf("nrncore_arg: |%s|\n", po.coreneuron.nrncore_arg(tstop))
}
Expand Down
2 changes: 2 additions & 0 deletions defvar.hoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ default_var("arg_coreneuron", 0)
default_var("arg_coreneuron_filemode", 0)
default_var("arg_dump_coreneuron_model", 0)
default_var("arg_coreneuron_gpu", 0)
default_var("arg_prcellstate", -1)
default_var("arg_pattern", "")

use_coreneuron = arg_coreneuron
use_coreneuron_filemode = arg_coreneuron_filemode
dump_coreneuron_model = arg_dump_coreneuron_model
use_coreneuron_gpu = arg_coreneuron_gpu
use_prcellstate = arg_prcellstate
tstop = arg_tstop