mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
added clang format
This commit is contained in:
parent
70b1706460
commit
98a7d5eabc
2 changed files with 6 additions and 6 deletions
|
|
@ -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(
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue