Skip to content

Commit

Permalink
Print add_nrn_has_net_event. (#1375)
Browse files Browse the repository at this point in the history
  • Loading branch information
1uc authored Jul 30, 2024
1 parent 3e9e024 commit 92f176e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/codegen/codegen_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ struct CodegenInfo {
/// if net_send function is used
bool net_send_used = false;

/// if net_even function is used
/// if net_event function is used
bool net_event_used = false;

/// if diam is used
Expand Down
4 changes: 4 additions & 0 deletions src/codegen/codegen_neuron_cpp_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,10 @@ void CodegenNeuronCppVisitor::print_mechanism_register() {
printer->fmt_line("add_nrn_artcell(mech_type, {});", info.tqitem_index);
}

if (info.net_event_used) {
printer->fmt_line("add_nrn_has_net_event(mech_type);");
}

printer->add_line("hoc_register_var(hoc_scalar_double, hoc_vector_double, hoc_intfunc);");
if (!info.point_process) {
printer->add_line("hoc_register_npy_direct(mech_type, npy_direct_func_proc);");
Expand Down

0 comments on commit 92f176e

Please sign in to comment.