Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreMarchand20 committed Nov 14, 2023
1 parent a8faa59 commit 9121a5a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion lib/htool
24 changes: 12 additions & 12 deletions tests/test_ddm_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,18 +159,18 @@ def test_ddm_solver(
) / np.linalg.norm(f)
solution_error = np.linalg.norm(x[:, 1] - x_ref) / np.linalg.norm(x_ref)
# error = np.linalg.norm(distributed_operator * x - f)
if mpi4py.MPI.COMM_WORLD.rank == 0:
print(
iterative_solver,
hpddm_schwarz_method,
hpddm_schwarz_coarse_correction,
epsilon,
solver.get_information("Nb_it"),
# error,
# np.linalg.norm(f),
# error / np.linalg.norm(f),
# hpddm_args,
)
# if mpi4py.MPI.COMM_WORLD.rank == 0:
# print(
# iterative_solver,
# hpddm_schwarz_method,
# hpddm_schwarz_coarse_correction,
# epsilon,
# solver.get_information("Nb_it"),
# # error,
# # np.linalg.norm(f),
# # error / np.linalg.norm(f),
# # hpddm_args,
# )
# print(
# np.linalg.norm(distributed_operator * x - f),
# np.linalg.norm(f),
Expand Down
2 changes: 1 addition & 1 deletion tests/test_distributed_operator.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def test_distributed_operator(
default_distributed_operator_holder = default_distributed_operator
distributed_operator = default_distributed_operator_holder.distributed_operator
local_hmatrix = default_distributed_operator_holder.hmatrix
print(local_hmatrix.get_information())
print(local_hmatrix.get_local_information())
else:
distributed_operator = custom_distributed_operator

Expand Down

0 comments on commit 9121a5a

Please sign in to comment.