Added comments explaining reasoning for 2D xtensor xs in photon.h

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Patrick Myers 2022-06-29 09:25:59 -05:00 committed by GitHub
parent 880a0d9402
commit d80bf7bdb5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,9 @@ public:
Tabulated1D coherent_anomalous_real_;
Tabulated1D coherent_anomalous_imag_;
// Photoionization and atomic relaxation data
// Photoionization and atomic relaxation data. Subshell cross sections are
// stored separately to improve memory access pattern when calculating the
// total cross section
vector<ElectronSubshell> shells_;
xt::xtensor<double, 2> cross_sections_;