This repository was archived by the owner on Mar 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Expand file tree Collapse file tree 2 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -75,10 +75,6 @@ using DependencyTable = std::vector<std::vector<int>>;
75
75
*/
76
76
class CoreNeuron {
77
77
78
-
79
- // / Local to coreneuron, used to keep track of point process IDs
80
- int pointtype = 1 ; /* starts at 1 since 0 means not point in pnt_map*/
81
-
82
78
/* *
83
79
* map if mech is a point process
84
80
* In the future only a field of Mechanism class
@@ -237,15 +233,6 @@ class CoreNeuron {
237
233
return nrn_bbcore_write;
238
234
}
239
235
240
-
241
- /* *
242
- * Generate point process IDs for pnt_map starting at 1 (since 0 means no point process)
243
- * \return the next available point process ID
244
- */
245
- int get_next_pointtype () {
246
- return pointtype++;
247
- }
248
-
249
236
};
250
237
251
238
extern CoreNeuron corenrn;
Original file line number Diff line number Diff line change @@ -359,14 +359,15 @@ void register_destructor(Pfri d) {
359
359
}
360
360
361
361
int point_reg_helper (Symbol* s2) {
362
+ static int next_pointtype = 1 ; /* starts at 1 since 0 means not point in pnt_map */
362
363
int type;
363
364
type = nrn_get_mechtype (s2);
364
365
365
366
// No mechanism in the .dat files
366
367
if (type == -1 )
367
368
return type;
368
369
369
- corenrn.get_pnt_map ()[type] = corenrn. get_next_pointtype () ;
370
+ corenrn.get_pnt_map ()[type] = next_pointtype++ ;
370
371
corenrn.get_memb_func (type).is_point = 1 ;
371
372
372
373
return corenrn.get_pnt_map ()[type];
You can’t perform that action at this time.
0 commit comments