I want to change the NMODL integration of ODEs from cnexp to sparse, I referred to this: https://bluebrain.github.io/nmodl/html/ ... rview.html
To do this, I simply change the following codes from original hh.mod(from cnexp to sparse):
Code: Select all
NEURON {
SUFFIX hh1
...
BREAKPOINT {
SOLVE states sparse
gna = gnabar*m*m*m*h
ina = gna*(v - ena)
gk = gkbar*n*n*n*n
ik = gk*(v - ek)
il = gl*(v - el)
}
When I tried to use the "hh1.mod" referring this:
https://nrn.readthedocs.io/en/8.2.2/cou ... files.html
I run
Code: Select all
nrnivmodl
Code: Select all
(torch1) gyy@cxhpc:~/work/NEURON$ nrnivmodl
/home/gyy/work/NEURON
Mod files: "./hh1.mod"
Creating 'x86_64' directory for .o files.
-> Compiling mod_func.cpp
-> NMODL ../hh1.mod
Translating hh1.mod into /home/gyy/work/NEURON/x86_64/hh1.c
syntax error:
Illegal statement:
Illegal block at line 65 in file hh1.mod
SOLVE states sparse
^
make: *** [makemod2c_inc:3: hh1.c] Error 1
make: *** Waiting for unfinished jobs....
Traceback (most recent call last):
File "/home/gyy/anaconda3/envs/torch1/bin/nrnivmodl", line 94, in <module>
subprocess.check_call([exe, *sys.argv[1:]])
File "/home/gyy/anaconda3/envs/torch1/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/gyy/anaconda3/envs/torch1/lib/python3.9/site-packages/neuron/.data/bin/nrnivmodl']' returned non-zero exit status 2.