Skip to content

Commit

Permalink
back in black
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Jan 24, 2024
1 parent cd924ac commit febc6bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2501,7 +2501,7 @@ def branchless_collision(P, mcdc):
# Adjust weight
SigmaT = get_MacroXS(XS_TOTAL, material, P, mcdc)
n_scatter = get_MacroXS(XS_NU_SCATTER, material, P, mcdc)
n_fission = get_MacroXS(XS_NU_FISSION, material, P, mcdc) / mcdc['k_eff']
n_fission = get_MacroXS(XS_NU_FISSION, material, P, mcdc) / mcdc["k_eff"]
n_total = n_fission + n_scatter
P["w"] *= n_total / SigmaT

Expand All @@ -2518,10 +2518,10 @@ def branchless_collision(P, mcdc):
# Beyond time census or time boundary?
idx_census = mcdc["idx_census"]
if P["t"] > mcdc["setting"]["census_time"][idx_census]:
P['alive'] = False
P["alive"] = False
add_particle(split_particle(P), mcdc["bank_census"])
elif P["t"] > mcdc["setting"]["time_boundary"]:
P['alive'] = False
P["alive"] = False


# =============================================================================
Expand Down

0 comments on commit febc6bc

Please sign in to comment.