@@ -702,9 +702,7 @@ void nrn_setup(const char* filesdat,
702702 // Note that rank with 0 dataset/cellgroup works fine
703703 nrn_threads_create (ngroup <= 1 ? 2 : ngroup);
704704
705- #if 1 || CHKPNTDEBUG // only required for NrnThreadChkpnt.file_id
706705 nrnthread_chkpnt = new NrnThreadChkpnt[nrn_nthread];
707- #endif
708706
709707 if (nrn_nthread > 1 ) {
710708 // NetCvode construction assumed one thread. Need nrn_nthread instances
@@ -849,9 +847,9 @@ void read_phasegap(FileHandler& F, int imult, NrnThread& nt) {
849847
850848 F.checkpoint (chkpntsave);
851849
852- #if 0
850+ #if DEBUG
853851 printf (" %d read_phasegap tid=%d type=%d %s ix_vpre=%d nsrc=%d ntar=%d\n " ,
854- nrnmpi_myid, nt.id, si.type, memb_func[ si.type] .sym, si.ix_vpre,
852+ nrnmpi_myid, nt.id , si.type , corenrn. get_memb_func ( si.type ) .sym , si.ix_vpre ,
855853 si.nsrc , si.ntar );
856854 for (int i=0 ; i < si.nsrc ; ++i) {
857855 printf (" sid_src %d %d\n " , si.sid_src [i], si.v_indices [i]);
@@ -1194,10 +1192,8 @@ void read_phase2(FileHandler& F, int imult, NrnThread& nt) {
11941192 assert (!F.fail ()); // actually should assert that it is open
11951193 }
11961194 nrn_assert (imult >= 0 ); // avoid imult unused warning
1197- #if 1 || CHKPNTDEBUG
11981195 NrnThreadChkpnt& ntc = nrnthread_chkpnt[nt.id ];
11991196 ntc.file_id = gidgroups_w[nt.id ];
1200- #endif
12011197
12021198 int n_outputgid, ndiam, nmech, *tml_index, *ml_nodecount;
12031199 if (direct) {
@@ -1598,7 +1594,7 @@ void read_phase2(FileHandler& F, int imult, NrnThread& nt) {
15981594 permute_ptr (nt._v_parent_index , nt.end , p);
15991595 node_permute (nt._v_parent_index , nt.end , p);
16001596
1601- #if 0
1597+ #if DEBUG
16021598for (int i=0 ; i < nt.end ; ++i) {
16031599 printf (" parent[%d] = %d\n " , i, nt._v_parent_index [i]);
16041600}
@@ -2190,9 +2186,9 @@ static size_t memb_list_size(NrnThreadMembList* tml) {
21902186 nbyte += corenrn.get_prop_dparam_size ()[tml->index ] * tml->ml ->nodecount * sizeof (Datum);
21912187#ifdef DEBUG
21922188 int i = tml->index ;
2193- printf (" %s %d psize=%d ppsize=%d cnt=%d nbyte=%ld\n " , memb_func[i] .sym , i,
2194- crnrn .get_prop_param_size ()[i],
2195- crnrn .get_prop_dparam_size ()[i], tml->ml ->nodecount , nbyte);
2189+ printf (" %s %d psize=%d ppsize=%d cnt=%d nbyte=%ld\n " , corenrn. get_memb_func (i) .sym , i,
2190+ corenrn .get_prop_param_size ()[i],
2191+ corenrn .get_prop_dparam_size ()[i], tml->ml ->nodecount , nbyte);
21962192#endif
21972193 return nbyte;
21982194}
@@ -2217,7 +2213,7 @@ size_t input_presyn_size(void) {
22172213 size_t nbyte =
22182214 sizeof (gid2in) + sizeof (int ) * gid2in.size () + sizeof (InputPreSyn*) * gid2in.size ();
22192215#ifdef DEBUG
2220- printf (" gid2in table bytes=~%ld size=%d\n " , nbyte, gid2in-> size ());
2216+ printf (" gid2in table bytes=~%ld size=%d\n " , nbyte, gid2in. size ());
22212217#endif
22222218 return nbyte;
22232219}
0 commit comments