mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Update src/secondary_thermal.cpp
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
39e57619df
commit
dc2e386a29
2 changed files with 4 additions and 6 deletions
|
|
@ -4,6 +4,8 @@
|
|||
#include "openmc/random_lcg.h"
|
||||
#include "openmc/search.h"
|
||||
|
||||
#include <gsl/gsl-lite.hpp>
|
||||
|
||||
#include "xtensor/xview.hpp"
|
||||
|
||||
#include <cmath> // for log, exp
|
||||
|
|
@ -38,11 +40,7 @@ void CoherentElasticAE::sample(
|
|||
|
||||
const auto& energies {xs_.bragg_edges()};
|
||||
|
||||
if (E_in < energies.front()) {
|
||||
// XS is zero for E < energies[0] -> no scatter
|
||||
mu = 1.0;
|
||||
return;
|
||||
}
|
||||
Expects(E_in >= energies.front());
|
||||
|
||||
const int i = lower_bound_index(energies.begin(), energies.end(), E_in);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
k-combined:
|
||||
1.406055E+00 9.581397E-02
|
||||
1.406055E+00 9.581396E-02
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue