added clang format

This commit is contained in:
myerspat 2022-06-10 11:57:35 -05:00
parent 70b1706460
commit 98a7d5eabc
2 changed files with 6 additions and 6 deletions

View file

@ -165,8 +165,8 @@ PhotonInteraction::PhotonInteraction(hid_t group)
close_dataset(dset);
read_dataset(tgroup, "xs", xs);
auto cross_section = xt::view(cross_sections_,
xt::range(shell.threshold, xt::placeholders::_), i);
auto cross_section = xt::view(
cross_sections_, xt::range(shell.threshold, xt::placeholders::_), i);
cross_section = xt::where(xs > 0, xt::log(xs), 0);
if (object_exists(tgroup, "transitions")) {
@ -577,7 +577,8 @@ void PhotonInteraction::calculate_xs(Particle& p) const
for (int i = 0; i < xs_upper.size(); ++i)
if (xs_lower(i) != 0)
xs.photoelectric += std::exp(xs_lower(i) + f * (xs_upper(i) - xs_lower(i)));
xs.photoelectric +=
std::exp(xs_lower(i) + f * (xs_upper(i) - xs_lower(i)));
// Calculate microscopic pair production cross section
xs.pair_production = std::exp(

View file

@ -361,9 +361,8 @@ void sample_photon_reaction(Particle& p)
continue;
// Evaluation subshell photoionization cross section
prob += std::exp(xs_lower(i_shell) +
f * (xs_upper(i_shell) -
xs_lower(i_shell)));
prob += std::exp(
xs_lower(i_shell) + f * (xs_upper(i_shell) - xs_lower(i_shell)));
if (prob > cutoff) {
double E_electron = p.E() - shell.binding_energy;