Bizzare difference between nrnzip and mosinit.hoc

The basics of how to develop, test, and use models.
Post Reply
xiayang

Bizzare difference between nrnzip and mosinit.hoc

Post by xiayang »

I downloaded some models from the database. When I run the individual file mosinit.hoc by default, it shows all sorts of errors and simply wouldn't run the simulation successfully.

However, when I click on the nrnzip file directly, or indeed zip my files back into a zip file and change the name into .nrnzip, then NEURON runs it all right without any problem.

Why is this difference? What's wrong with the individual files run and how can I fix it to allow more convenient editting and debugging? Thanks!!
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Downloading the zip file gets source code. If the source code includes mod files, they must
be compiled before you try to run the simulation. nrnzip is downloaded to someplace on your
PC (but where? you don't get to say!), automatically unzipped, and compiled for you. I never
bother with nrnzip because I want to specify where the files are put on my PC.

Let me know if this fixes your problem. If you find any models in ModelDB that are broken,
please let the ModelDB administrator know (email link is on every page of ModelDB).
xiayang

fixed now, thanks ted

Post by xiayang »

Dear Ted,

Many thanks for your reply! You are right, I wasn't aware that I needed to compile the mod files first to produce the dll! Now the hoc runs all right. Thank you!

Sorry I didn't make myself clear. I was using the windows XP environment installed on MacBook Intel Core Duo. I was wondering why the hoc file per se didn't run while the nrnzip mode seemed to be working. I was aware of the fact that usually nrnzip can be run directly from explorer using mos2nrn, but I downloaded it and executed it to check whether the codes could work some way at all. given that my individual files didn't. So the problem is fixed now, thank you!
ted
Site Admin
Posts: 6394
Joined: Wed May 18, 2005 4:50 pm
Location: Yale University School of Medicine
Contact:

Post by ted »

Some of the "readme" files for NEURON models in ModelDB tell users that they must
compile any mod files that are included, but others don't.
Post Reply