Skip to content

Commit 93792a9

Browse files
committed
minor fix for time_step_reset
1 parent 22474d1 commit 93792a9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/random_ray/source_region.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ void SourceRegionContainer::time_step_reset()
416416
{
417417
std::fill(scalar_flux_final_.begin(), scalar_flux_final_.end(), 0.0);
418418
std::fill(precursors_final_.begin(), precursors_final_.end(), 0.0);
419+
if (RandomRay::time_method_ == RandomRayTimeMethod::PROPAGATION)
420+
std::fill(source_final_.begin(), source_final_.end(), 0.0);
419421
}
420422

421423
} // namespace openmc

0 commit comments

Comments
 (0)