I am attempting to run a NEURON batch file. I usually run this file on an intel mac with no problems but now want to use a unix system.
Initially, I was receiving errors that one of my own synaptic mechanisms (FDSExp2Syn defined in fdsexp2syn.mod) was "not a template" (I have included the relevant .mod file in the appropriate directory -- the same as my .hoc code). When I updated the installation of NEURON on the Unix system to the current version, this problem was partially solved. Now that I've updated, I can run my batch file using the command nrngui, but when I use the command nrniv, I get the same "not a template" error.
I've checked carriage returns, since I know can cause problems when switching between operating systems, and they are in Unix format.
I'm perplexed. Do you know of any solutions?
Thanks so much,
DVC
Running batch file in unix--conversion from mac
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Running batch file in unix--conversion from mac
Batch file? "Program" yes, "script" maybe, but "batch file"?dlvc wrote:I am attempting to run a NEURON batch file.
This usually means that one or more mod file(s) must be compiled. cd to the directory that contains your hoc and mod files, thenInitially, I was receiving errors that one of my own synaptic mechanisms (FDSExp2Syn defined in fdsexp2syn.mod) was "not a template"
rm -r i686
nrnivmodl
and you should be able to
nrniv filename
where filename is the name of the hoc file that contains your, ah, program.
Waste of time. NEURON recognizes all eol as equal, regardless of their OS of origin.I've checked carriage returns, since I know can cause problems when switching between operating systems
You don't happen to have spaces or punctuation in your directory names, do you? That might cause a hiccup or two.
Re: Running batch file in unix--conversion from mac
Thanks Ted.
It turns out that I hadn't understood that I needed to be using the "special" script instead of nrniv to use mechansims from my mod files, which you describe at the bottom of the NEURON FAQ.
It's good to know I don't need to worry about line breaks.
Thanks again.
Yes, I had tried this since I know that's the most common reason for the "not a template" error and it wasn't the fix.ted wrote:
This usually means that one or more mod file(s) must be compiled. cd to the directory that contains your hoc and mod files, then
rm -r i686
nrnivmodl
and you should be able to
nrniv filename
where filename is the name of the hoc file that contains your, ah, program.
It turns out that I hadn't understood that I needed to be using the "special" script instead of nrniv to use mechansims from my mod files, which you describe at the bottom of the NEURON FAQ.
It's good to know I don't need to worry about line breaks.
Thanks again.
-
- Site Admin
- Posts: 6305
- Joined: Wed May 18, 2005 4:50 pm
- Location: Yale University School of Medicine
- Contact:
Re: Running batch file in unix--conversion from mac
Written so long ago I forgot it. But things seem to have changed, at least with NEURON 7.1 (333:4aa881b7692d) 2009-08-20 under CentOS 5.3 (RHEL 5.3 without the trademarks or the fees). I find that nrniv loads the compiled mechanisms without any difficulty.It turns out that I hadn't understood that I needed to be using the "special" script instead of nrniv to use mechansims from my mod files, which you describe at the bottom of the NEURON FAQ
I need to look into this further. Which version of NEURON and exactly what OS are you using?
Re: Running batch file in unix--conversion from mac
I am running NEURON 7.0 (though I see 7.1 is just out) with the GNU/Linux OS on a system administered by my employer. Let me know exactly what further specifics about the system would be helpful, and I'll check with our IT folks. Thanks for checking this out.
Re: Running batch file in unix--conversion from mac
The linux script normally used to run a GUI version of neuron so that it automatically
loads the mod file library resulting from nrnivmodl is
nrngui ...
See
cat `which gui`
to see what it is doing.
<hostcpu>/special is typically a shell script that fills in the correct -dll arg to dynamically
load the mod file library.
There was a slight inconvenience with this sequence when running under mpiexec so when
NEURON is configured with the --with-mpi (or better, the --with-paranrn) option, then
launching nrniv, causes the executable to look in the current working directory for a
<hostcpu>/.libs/libnrnmech.so shared library and automatically load it. This happens
whether launched with the -mpi arg or not. This happens only if an explicit -dll file is
not in the nrniv arg list.
loads the mod file library resulting from nrnivmodl is
nrngui ...
See
cat `which gui`
to see what it is doing.
<hostcpu>/special is typically a shell script that fills in the correct -dll arg to dynamically
load the mod file library.
There was a slight inconvenience with this sequence when running under mpiexec so when
NEURON is configured with the --with-mpi (or better, the --with-paranrn) option, then
launching nrniv, causes the executable to look in the current working directory for a
<hostcpu>/.libs/libnrnmech.so shared library and automatically load it. This happens
whether launched with the -mpi arg or not. This happens only if an explicit -dll file is
not in the nrniv arg list.