From d38eb74b71728e9ab3e9dc43c986d662faa3ff9e Mon Sep 17 00:00:00 2001 From: Pramod Kumbhar Date: Wed, 22 Jun 2022 18:30:19 +0200 Subject: [PATCH] Fix for WATCH statement weight vector index for net_send (copy from BlueBrain/mod2c/pull/82) (#886) - See https://github.com/BlueBrain/mod2c/pull/82 --- src/codegen/codegen_c_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/codegen/codegen_c_visitor.cpp b/src/codegen/codegen_c_visitor.cpp index 5ea7040b34..3e17c6f14e 100644 --- a/src/codegen/codegen_c_visitor.cpp +++ b/src/codegen/codegen_c_visitor.cpp @@ -3663,7 +3663,7 @@ void CodegenCVisitor::print_watch_check() { printer->add_text("net_send_buffering("); auto t = get_variable_name("t"); printer->add_text( - fmt::format("ml->_net_send_buffer, 0, {}, 0, {}, {}+0.0, ", tqitem, point_process, t)); + fmt::format("ml->_net_send_buffer, 0, {}, -1, {}, {}+0.0, ", tqitem, point_process, t)); watch->get_value()->accept(*this); printer->add_text(");"); printer->add_newline();