Skip to content

Commit

Permalink
back in black
Browse files Browse the repository at this point in the history
  • Loading branch information
ilhamv committed Aug 25, 2023
1 parent ea8349c commit bb5c9db
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions mcdc/loop.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def gmres(seed, mcdc):
if normb == 0.0:
normb = 1.0
if normr < tol * normb:
return X, 0
return X, 0

iteration = 0

Expand Down Expand Up @@ -554,15 +554,14 @@ def power_iteration(seed, mcdc):
mcdc["technique"]["iqmc_res_outter"] <= tol
):
simulation_end = True

loop_index += numba.uint64(1)

if mcdc["setting"]["progress_bar"]:
with objmode():
print_iqmc_eigenvalue_exit_code(mcdc)



@njit
def davidson(seed, mcdc):
"""
Expand Down
3 changes: 2 additions & 1 deletion test/regression/eigenvalue/slab_kornreich_iqmc/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
import mcdc

import numba as nb

nb.config.DISABLE_JIT = True


def pi_test():
# =========================================================================
# Set model
Expand Down Expand Up @@ -161,7 +163,6 @@ def davidson_test():
b = output["iqmc/flux"][:]
assert np.allclose(a, b)


a = output["k_eff"][()]
b = answer["k_eff"][()]
assert np.allclose(a, b)
Expand Down

0 comments on commit bb5c9db

Please sign in to comment.