From a921280fa9c3f63eb10132ad37bacd612ab82157 Mon Sep 17 00:00:00 2001 From: Hunter Belanger Date: Sat, 3 May 2025 05:10:18 +0000 Subject: [PATCH] Fix extremely large yields from Bremsstrahlung (#3386) Co-authored-by: Paul Romano --- src/material.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/material.cpp b/src/material.cpp index a1937aca45..2bd504e4db 100644 --- a/src/material.cpp +++ b/src/material.cpp @@ -640,7 +640,7 @@ void Material::init_bremsstrahlung() // Allocate arrays for TTB data ttb->pdf = xt::zeros({n_e, n_e}); ttb->cdf = xt::zeros({n_e, n_e}); - ttb->yield = xt::empty({n_e}); + ttb->yield = xt::zeros({n_e}); // Allocate temporary arrays xt::xtensor stopping_power_collision({n_e}, 0.0);