mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Turn tallies on for fixed source.
This commit is contained in:
parent
3d2283d6df
commit
78224fdb64
2 changed files with 7 additions and 5 deletions
|
|
@ -21,13 +21,14 @@ contains
|
|||
|
||||
if (master) call header("BEGIN SIMULATION", level=1)
|
||||
|
||||
tallies_on = .true.
|
||||
call timer_start(time_inactive)
|
||||
|
||||
! Allocate particle and dummy source site
|
||||
allocate(p)
|
||||
allocate(source_site)
|
||||
|
||||
! Turn timer and tallier on
|
||||
tallies_on = .true.
|
||||
call timer_start(time_active)
|
||||
|
||||
! ==========================================================================
|
||||
! LOOP OVER BATCHES
|
||||
BATCH_LOOP: do current_batch = 1, n_batches
|
||||
|
|
|
|||
|
|
@ -142,8 +142,9 @@ contains
|
|||
if (n_particles == 0) n_particles = str_to_int(fixed_source_ % particles)
|
||||
|
||||
! Copy batch information
|
||||
n_batches = fixed_source_ % batches
|
||||
n_active = fixed_source_ % batches
|
||||
n_batches = fixed_source_ % batches
|
||||
n_active = fixed_source_ % batches
|
||||
gen_per_batch = 1
|
||||
end if
|
||||
|
||||
! Check number of active batches
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue