From 0ef945cc06aac18517d5ca1825bf1c876e843633 Mon Sep 17 00:00:00 2001 From: lewisgross1296 Date: Thu, 18 Aug 2022 14:55:56 -0500 Subject: [PATCH] removing set_strides() from tally.cpp causes issues, but it should be fine to add in openmc_simulation_init() and in there should occur before init_results. this is because init_results use n_filter_bins_ which is modified by set_strides() --- src/simulation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/simulation.cpp b/src/simulation.cpp index b70535c33..d7292cb9d 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -97,6 +97,7 @@ int openmc_simulation_init() // Allocate tally results arrays if they're not allocated yet for (auto& t : model::tallies) { + t->set_strides(); t->init_results(); }