Skip to content

Commit

Permalink
remove flux-outter, not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
spasmann committed Nov 9, 2023
1 parent df5c9f0 commit 9f8d533
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
5 changes: 0 additions & 5 deletions mcdc/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -2342,11 +2342,6 @@ def iqmc_prepare_source(mcdc):
"""
flux_scatter = mcdc["technique"]["iqmc"]["score"]["flux"]
flux_fission = mcdc["technique"]["iqmc"]["score"]["flux"]
if (
mcdc["setting"]["mode_eigenvalue"]
and mcdc["technique"]["iqmc"]["eigenmode_solver"] == "power_iteration"
):
flux_fission = mcdc["technique"]["iqmc"]["score"]["flux-outter"]
mesh = mcdc["technique"]["iqmc"]["mesh"]
Nt = len(mesh["t"]) - 1
Nx = len(mesh["x"]) - 1
Expand Down
2 changes: 0 additions & 2 deletions mcdc/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,6 @@ def power_iteration(mcdc):
# maximum number of iterations
maxit = mcdc["technique"]["iqmc"]["maxitt"]
score_bin = mcdc["technique"]["iqmc"]["score"]
score_bin["flux-outter"] = score_bin["flux"].copy()
k_old = mcdc["k_eff"]
solver = mcdc["technique"]["iqmc"]["fixed_source_solver"]

Expand Down Expand Up @@ -562,7 +561,6 @@ def power_iteration(mcdc):
mcdc["technique"]["iqmc"]["res_outter"] = abs(mcdc["k_eff"] - k_old) / k_old
k_old = mcdc["k_eff"]
# store outter iteration values
score_bin["flux-outter"] = score_bin["flux"].copy()
score_bin["effective-fission-outter"] = score_bin["effective-fission"].copy()
fission_source_old = score_bin["fission-source"].copy()
mcdc["technique"]["iqmc"]["itt_outter"] += 1
Expand Down
1 change: 0 additions & 1 deletion mcdc/type_.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,6 @@ def make_type_technique(N_particle, G, card):
scores_struct += [(name, float64, shape)]
# TODO: make outter flux/effective fission size zero if not eigenmode
# (causes problems with numba)
scores_struct += [("flux-outter", float64, (Ng, Nt, Nx, Ny, Nz))]
scores_struct += [("effective-fission-outter", float64, (Ng, Nt, Nx, Ny, Nz))]
scores = np.dtype(scores_struct)
iqmc_list += [("score", scores)]
Expand Down

0 comments on commit 9f8d533

Please sign in to comment.