Skip to content

Commit a921280

Browse files
Fix extremely large yields from Bremsstrahlung (#3386)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
1 parent d0354db commit a921280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/material.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ void Material::init_bremsstrahlung()
640640
// Allocate arrays for TTB data
641641
ttb->pdf = xt::zeros<double>({n_e, n_e});
642642
ttb->cdf = xt::zeros<double>({n_e, n_e});
643-
ttb->yield = xt::empty<double>({n_e});
643+
ttb->yield = xt::zeros<double>({n_e});
644644

645645
// Allocate temporary arrays
646646
xt::xtensor<double, 1> stopping_power_collision({n_e}, 0.0);

0 commit comments

Comments
 (0)