1 #include "../../nrnconf.h" 23 int header_printed = 0;
27 for (
int i = 0;
i < ml->nodecount; ++
i) {
28 int inode = ml->nodeindices[
i];
29 if (cellnodes[inode] >= 0) {
30 if (!header_printed) {
34 if (receives_events) {
35 fprintf(f,
"%d nri %d\n", cellnodes[inode], pntindex);
37 pnt2index->insert(pp, pntindex);
40 for (
int j=0;
j < size; ++
j) {
53 NetConList** nclist =
new NetConList*[
pntindex];
54 for (
int i=0;
i <
pntindex; ++
i) { nclist[
i] =
new NetConList(1); }
64 nclist[
index]->append(nc);
68 fprintf(f,
"netcons %d\n", nc_cnt);
69 fprintf(f,
" pntindex srcgid active delay weights\n");
71 for (
int j=0;
j < nclist[
i]->count(); ++
j) {
78 }
else if (srcgid < 0 && nc->src_ && nc->
src_->
ssrc_) {
84 for (
int k=0;
k < wcnt; ++
k) {
131 while (rnode >= nt.
ncell) {
137 int* cellnodes =
new int[nt.
end];
138 for (
int i=0;
i < nt.
end; ++
i) { cellnodes[
i] = -1; }
140 cellnodes[rnode] = cnt++;
143 cellnodes[
i] = cnt++;
146 fprintf(f,
"%d nodes %d is the threshold node\n", cnt, cellnodes[inode]-1);
148 fprintf(f,
"inode parent area a b\n");
149 for (
int i=0;
i < nt.
end; ++
i)
if (cellnodes[
i] >= 0) {
151 fprintf(f,
"%d %d %.*g %.*g %.*g\n",
156 for (
int i=0;
i < nt.
end; ++
i)
if (cellnodes[
i] >= 0) {
164 pr_memb(tml->index, tml->ml, cellnodes, nt, f);
179 sprintf(buf,
"%d_%s.nrndat", gid, suffix);
180 FILE* f =
fopen(buf,
"w");
ReceiveFunc * pnt_receive
NetCon void static int PV2I * pnt2index
struct NrnThreadMembList * next
#define ITERATE(itm, lst)
Symbol * hoc_lookup(const char *)
Represent main neuron object computed by single thread.
PreSyn * nrn_gid2outputpresyn(int gid)
static philox4x32_key_t k
sprintf(buf," if (secondorder) {\ " int _i;\" " for(_i=0;_i< %d;++_i) {\" " _p[_slist%d[_i]]+=dt *_p[_dlist%d[_i]];\" " }}\", numeqn, listnum, listnum)
#define implementTable(Table, Key, Value)
#define implementPtrList(PtrList, T)
void nrn_prcellstate(int gid, const char *filesuffix)
const char * secname(Section *sec)
static void pr_memb(int type, Memb_list *ml, int *cellnodes, NrnThread &nt, FILE *f)
void hoc_execerror(const char *, const char *)
static void pr_netcon(NrnThread &nt, FILE *f)
NetCon declareTable(PV2I, void *, int) implementTable(PV2I
fprintf(stderr, "Don't know the location of params at %p\, pp)
int * nrn_prop_param_size_
int * nrn_prop_dparam_size_
HocStruct cTemplate * ctemplate
static void pr_realcell(PreSyn &ps, NrnThread &nt, FILE *f)
declarePtrList(NetConList, NetCon) implementPtrList(NetConList