Skip to content

Commit

Permalink
Add voltage to update_stiff
Browse files Browse the repository at this point in the history
JCGoran committed Oct 23, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent ddeef2b commit e1f715b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/codegen/codegen_neuron_cpp_visitor.cpp
Original file line number Diff line number Diff line change
@@ -2680,6 +2680,10 @@ void CodegenNeuronCppVisitor::print_cvode_definitions() {
info.mod_suffix,
get_parameter_str(cvode_update_parameters())); // begin fn

printer->add_line(
"auto v = node_data.node_voltages ? "
"node_data.node_voltages[node_data.nodeindices[id]] : 0.0;");

print_statement_block(*info.cvode_block->get_stiff_block(), false, false);

printer->pop_block(); // end fn

0 comments on commit e1f715b

Please sign in to comment.