mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Implementation of Shannon Entropy for Random Ray (#3030)
Co-authored-by: Ethan Krammer <ethan@DESKTOP-MGFGK9N> Co-authored-by: John Tramm <john.tramm@gmail.com>
This commit is contained in:
parent
8ce81d132a
commit
a8171cbd4e
14 changed files with 283 additions and 30 deletions
|
|
@ -531,7 +531,8 @@ void finalize_generation()
|
|||
if (settings::run_mode == RunMode::EIGENVALUE) {
|
||||
|
||||
// Calculate shannon entropy
|
||||
if (settings::entropy_on)
|
||||
if (settings::entropy_on &&
|
||||
settings::solver_type == SolverType::MONTE_CARLO)
|
||||
shannon_entropy();
|
||||
|
||||
// Collect results and statistics
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue