Page 1 of 1
Adding subdirectory path for running mod files
Posted: Sat Oct 13, 2007 10:54 am
by JimH
I'd like to keep my nmodl files in a separate subdirectory and add a path so that while running a hoc file it utilizes the mod files in that subdirectory. Thoughts on how I would implement this? Thanks.
Posted: Sat Oct 13, 2007 2:21 pm
by ted
Two thoughts about this.
To see how it can be done, read c:\nrn\lib\hoc\pcchdir.hoc to learn how to use nrn_load_dll()
If you need more explanation than that, it's probably best to avoid bothering with it.
Posted: Sat Oct 13, 2007 2:48 pm
by JimH
Thanks, I just found that function.
For others reference:
I put all the files I needed in a subdirectory "modFiles", used mknrndll, and then the first file I run has the following code.
Code: Select all
nrn_load_dll("modFiles/nrnmech.dll")