From 31e0f0df90ca8a91f75197e32c113950efa53240 Mon Sep 17 00:00:00 2001 From: Pramod Kumbhar Date: Wed, 21 Jul 2021 18:10:24 +0200 Subject: [PATCH] Add CLI option for prcellstate --- common.hoc | 1 + defvar.hoc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/common.hoc b/common.hoc index 45398bd..4b21c2e 100644 --- a/common.hoc +++ b/common.hoc @@ -44,6 +44,7 @@ proc prun() { localobj po if(use_coreneuron_gpu) { po.coreneuron.gpu = 1 } + po.coreneuron.prcellstate = use_prcellstate if(pc.id == 0) { printf("nrncore_arg: |%s|\n", po.coreneuron.nrncore_arg(tstop)) } diff --git a/defvar.hoc b/defvar.hoc index 1851747..fe7af2e 100644 --- a/defvar.hoc +++ b/defvar.hoc @@ -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