Skip to content

Commit

Permalink
add sweep counter in iqmc kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Sep 5, 2023
1 parent 0ab66e3 commit 89d9e2f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -3015,6 +3015,7 @@ def AxV(phi, b, mcdc):
prepare_qmc_source(mcdc)
prepare_qmc_particles(mcdc)
mcdc["technique"]["iqmc_flux"] = np.zeros_like(mcdc["technique"]["iqmc_flux"])
mcdc["technique"]["iqmc_sweep_counter"] += 1
loop_source(0, mcdc)
# sum resultant flux on all processors
iqmc_distribute_flux(mcdc)
Expand Down Expand Up @@ -3043,6 +3044,7 @@ def RHS(mcdc):
prepare_qmc_source(mcdc)
prepare_qmc_particles(mcdc)
mcdc["technique"]["iqmc_flux"] = np.zeros_like(mcdc["technique"]["iqmc_flux"])
mcdc["technique"]["iqmc_sweep_counter"] += 1
loop_source(0, mcdc)
# sum resultant flux on all processors
iqmc_distribute_flux(mcdc)
Expand Down Expand Up @@ -3072,6 +3074,7 @@ def HxV(V, mcdc):
prepare_qmc_scattering_source(mcdc)
prepare_qmc_particles(mcdc)
mcdc["technique"]["iqmc_flux"] = np.zeros_like(mcdc["technique"]["iqmc_flux"])
mcdc["technique"]["iqmc_sweep_counter"] += 1
loop_source(0, mcdc)
# sum resultant flux on all processors
iqmc_distribute_flux(mcdc)
Expand Down Expand Up @@ -3104,6 +3107,7 @@ def FxV(V, mcdc):
prepare_qmc_fission_source(mcdc)
prepare_qmc_particles(mcdc)
mcdc["technique"]["iqmc_flux"] = np.zeros_like(mcdc["technique"]["iqmc_flux"])
mcdc["technique"]["iqmc_sweep_counter"] += 1
loop_source(0, mcdc)
# sum resultant flux on all processors
iqmc_distribute_flux(mcdc)
Expand Down Expand Up @@ -3139,6 +3143,7 @@ def preconditioner(V, mcdc, num_sweeps=3):
prepare_qmc_scattering_source(mcdc)
prepare_qmc_particles(mcdc)
mcdc["technique"]["iqmc_flux"] = np.zeros_like(mcdc["technique"]["iqmc_flux"])
mcdc["technique"]["iqmc_sweep_counter"] += 1
loop_source(0, mcdc)
# sum resultant flux on all processors
iqmc_distribute_flux(mcdc)
Expand Down

0 comments on commit 89d9e2f

Please sign in to comment.