Skip to content

Commit 52d3c48

Browse files
theoheimelQubitol
authored andcommitted
flavor index bugfix
1 parent c794502 commit 52d3c48

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

  • madgraph/iolibs/template_files/madmatrix

madgraph/iolibs/template_files/madmatrix/umami.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,10 @@ extern "C"
465465
color_random[i_event] = random_color_in ? random_color_in[i_event + offset] : 0.5;
466466
diagram_random[i_event] = random_diagram_in ? random_diagram_in[i_event + offset] : 0.5;
467467
g_s[i_event] = alpha_s_in ? sqrt( 4 * M_PI * alpha_s_in[i_event + offset] ) : 1.2177157847767195;
468+
flavor_indices[i_event] = flavor_indices_in ? flavor_indices_in[i_event + offset] : 0;
469+
}
470+
for ( std::size_t i_event = count; i_event < rounded_count; ++i_event ) {
471+
flavor_indices[i_event] = 0;
468472
}
469473
computeDependentCouplings( g_s.data(), couplings.data(), rounded_count );
470474

0 commit comments

Comments
 (0)