Assertion failed: file init.c, line 775
Posted: Wed Sep 20, 2006 10:49 am
Hello all,
I can compile the appendend NMODL file (which is meant to simulate the development of the neuromuscular junction), but when I come to run nrngui, I get the following error:
When I uncomment either of the two lines indicated in the file, the compiled binary works fine. I'm speculating that this has something to do with trying to allocate too much memory, but this is just a hunch.
Note that these variables aren't used for anything yet -- though they will be.
I've tested this on neuron 5.9.9, downloaded today.
Any help would be much appreciated.
David.
I can compile the appendend NMODL file (which is meant to simulate the development of the neuromuscular junction), but when I come to run nrngui, I get the following error:
Code: Select all
loading membrane mechanisms from /home/sterratt/projects/nmj/neuron/i686/.libs/libnrnmech.so
Additional mechanisms from files
nmj.mod
Assertion failed: file init.c, line 775
/home/sterratt/projects/nmj/neuron/i686/special: line 12: 18349 Segmentation fault "${NRNIV}" -dll "/home/sterratt/projects/nmj/neuron/i686/.libs/libnrnmech.so" "$@"
When I uncomment either of the two lines indicated in the file, the compiled binary works fine. I'm speculating that this has something to do with trying to allocate too much memory, but this is just a hunch.
Note that these variables aren't used for anything yet -- though they will be.
I've tested this on neuron 5.9.9, downloaded today.
Any help would be much appreciated.
David.
Code: Select all
NEURON {
POINT_PROCESS NMJ
RANGE A0, alpha, beta, gamma, delta, C0mean, C0std, innervation, count, Cmax, DeltaC
}
DEFINE N 20
DEFINE M 600
DEFINE NM 12000
PARAMETER {
A0 = 60
alpha = 45
beta = 0.4
gamma = 3
delta = 2
C0mean = 0.01
C0std = 0.01
}
ASSIGNED {
innervation[N]
count[M]
Cmax[NM] : Comment either of these lines out and it will compile
DeltaC[NM] : Comment either of these lines out and it will compile
}
STATE {
A[N]
As[NM]
B[M]
C[NM]
}
INITIAL {
FROM m = 0 TO M-1 {
B[m] = 1
}
FROM n=0 TO N-1 {
A[n] = A0
FROM m=0 TO M-1 {
C[n*M+m] = normrand(C0mean,C0std)
if (C[n*M+m]<0) {
C[n*M+m] = 0
}
B[m] = B[m] - C[n*M+m]
A[n] = A[n] - C[n*M+m]
As[n*M+m] = 0
}
}
}
BREAKPOINT {
SOLVE kin METHOD sparse
}
KINETIC kin { LOCAL n,m
FROM n=0 TO N-1 {
FROM m=0 TO M-1 {
~ As[n*M+m] + B[m] <-> C[n*M+m] (alpha * C[n*M+m], beta)
~ A[n] <-> As[n*M+m] (gamma * C[n*M+m], delta)
}
}
}
AFTER SOLVE { LOCAL n,m,c
FROM n=0 TO N-1 {
innervation[n] = 0
}
FROM m=0 TO M-1 {
c = 0
FROM n=0 TO N-1 {
if (C[n*M+m]> 0.01) {
c = c + 1
}
}
innervation[c] = innervation[c]+1
count[m] = c
}
}