Thanks Ted for the detailed explanation for the "Warning". I will look into my model for the source of that error.
Below is the code I used for the toy model:
Code: Select all
load_file("nrngui.hoc")
v_init=-65
create soma
soma{
nseg =9
insert hh
insert cachan
insert capr
}
finitialize(v_init)
objref zz
zz = new Impedance()
FREQ = 0 // Hz
WHERE = 0.5 // location in the soma that is the reference point
soma distance(0, WHERE) // sets origin for distance calculations
proc calcZ() {
soma zz.loc(WHERE) // sets origin for impedance calculations
zz.compute(FREQ, 1) // takes the impedance contributions of
// gating state differential equations into account
// but requires mechanisms to be compatible with CVODE
print "x distance(x) input(x) input_phase(x) transfer(x) transfer_phase(x) ratio(x)"
forall {
print secname()
for (x) print x, distance(x), zz.input(x), zz.input_phase(x), zz.transfer(x), zz.transfer_phase(x), zz.ratio(x)
}
}
calcZ()
The mechanisms capmp.mod and cachan.mod are from NEURON's library. If I comment out "insert capr", the code works properly. I get the error even if I don't have hh and cachan in the model.
The error is:
Code: Select all
C:\nrn\bin\nrniv.exe: cmplx_spFactor error: Singular
in C:/Users/Darshan/Desktop/pumptest/toymodel.hoc near line 34
calcZ()
^
Impedance[0].compute(0, 1)
calcZ()
calcZ()