Skip to content

Commit

Permalink
Merge branch 'fix/diffusive_concentrations' into fix/diffusive_concen…
Browse files Browse the repository at this point in the history
…trations_jlubo
  • Loading branch information
boeschf committed Jan 10, 2024
2 parents fcf48f4 + 979605f commit da48a69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modcc/printer/gpuprinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,12 @@ ARB_LIBMODCC_API std::string emit_gpu_cu_source(const Module& module_, const pri
" const auto tid_ = (begin_ + ii_)->mech_index;\n"
" if ((ii_ > 0) && ((begin_ + (ii_ - 1))->mech_index == tid_)) return;\n"
" for (auto i_ = begin_ + ii_; i_ < end_; ++i_) {{\n"
" int n_ = 0;\n"
" if (i_->mech_index != tid_) break;\n"
" [[maybe_unused]] auto {0} = i_->weight;\n"),
net_receive_api->args().empty() ? "weight" : net_receive_api->args().front()->is_argument()->name());
out << indent << indent << indent;
emit_api_body_cu(out, net_receive_api, ApiFlags{}.point(is_point_proc).loop(false).iface(false));
emit_api_body_cu(out, net_receive_api, ApiFlags{}.point(is_point_proc).additive(true).loop(false).iface(false));
out << popindent << "}\n" << popindent << "}\n" << popindent << "}\n\n";
}

Expand Down

0 comments on commit da48a69

Please sign in to comment.