Search found 17 matches
- Wed Apr 30, 2014 10:44 am
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Check if pointer is null in NMODL
- Replies: 7
- Views: 5220
Re: Check if pointer is null in NMODL
Hi Ted -- thanks for the quick and thoughtful response. I think your solution would work great for a one-compartment model, or for a multi-compartment model with a uniform distribution of 'plastic' conductances. This is the case for the original model I provided the link to. But what if I want my 'p...
- Tue Apr 29, 2014 11:39 am
- Forum: Adding new mechanisms and functions to NEURON
- Topic: Check if pointer is null in NMODL
- Replies: 7
- Views: 5220
Check if pointer is null in NMODL
I am curious if the if statement in the code below is valid/good practice: DERIVATIVE state_change { m' = (minf-m)/taum h' = (hinf-h)/tauh if(uPtr == NULL) { gbar' = (alpha_g * uPtr) - (beta_g * gbar) } } I am implementing a model that has homeostatically regulated maximal conductances (similar to h...