Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/cornu/use_globals'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Jun 17, 2024
2 parents 905c03a + 7717ba3 commit 1d48abc
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/nmodl/nocpout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1942,12 +1942,13 @@ void bablk(int ba, int type, Item* q1, Item* q2) {
insertstr(q1, buf);
q = q1->next;
vectorize_substitute(insertstr(q, ""), "Datum* _ppvar;");
qv = insertstr(q,
"_nrn_mechanism_cache_range _lmr{_sorted_token, *_nt, *_ml_arg, "
"_ml_arg->_type()}; auto* const "
"_ml = &_lmr;\n"
"double* _globals = nullptr;\n"
"if (gind != 0 && _thread != nullptr) { _globals = _thread[_gth].get<double*>(); }\n");
qv = insertstr(
q,
"_nrn_mechanism_cache_range _lmr{_sorted_token, *_nt, *_ml_arg, "
"_ml_arg->_type()}; auto* const "
"_ml = &_lmr;\n"
"double* _globals = nullptr;\n"
"if (gind != 0 && _thread != nullptr) { _globals = _thread[_gth].get<double*>(); }\n");
qv = insertstr(q, "_ppvar = _ppd;\n");
movelist(qb, q2, procfunc);

Expand Down

0 comments on commit 1d48abc

Please sign in to comment.