Search found 17 matches

by ahwillia
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: 3334

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...
by ahwillia
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: 3334

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...