mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fix resetting of global_tallies
This commit is contained in:
parent
b2eba58946
commit
407e40fec3
1 changed files with 1 additions and 3 deletions
|
|
@ -105,12 +105,10 @@ int openmc_reset()
|
|||
double* buffer = nullptr;
|
||||
openmc_global_tallies(&buffer);
|
||||
if (buffer) {
|
||||
for (int i = 0; i < 3*N_GLOBAL_TALLIES*3; ++i) {
|
||||
for (int i = 0; i < 3*N_GLOBAL_TALLIES; ++i) {
|
||||
buffer[i] = 0.0;
|
||||
}
|
||||
}
|
||||
// auto gt = global_tallies();
|
||||
// std::fill(gt.begin(), gt.end(), 0.0);
|
||||
|
||||
simulation::k_col_abs = 0.0;
|
||||
simulation::k_col_tra = 0.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue