From d80bf7bdb596a7169f0e28d42b363d1886c43448 Mon Sep 17 00:00:00 2001 From: Patrick Myers <90068356+myerspat@users.noreply.github.com> Date: Wed, 29 Jun 2022 09:25:59 -0500 Subject: [PATCH] Added comments explaining reasoning for 2D xtensor xs in photon.h Co-authored-by: Paul Romano --- include/openmc/photon.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/openmc/photon.h b/include/openmc/photon.h index 50ee228c44..09fb3ba01b 100644 --- a/include/openmc/photon.h +++ b/include/openmc/photon.h @@ -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 shells_; xt::xtensor cross_sections_;