From 30e14a4a4808d95586ca078b5753d26abfda6897 Mon Sep 17 00:00:00 2001 From: olender Date: Thu, 27 Jun 2024 20:47:29 -0300 Subject: [PATCH] Fixing test --- test_parallel/test_forward.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_parallel/test_forward.py b/test_parallel/test_forward.py index 91287542..1760dd52 100644 --- a/test_parallel/test_forward.py +++ b/test_parallel/test_forward.py @@ -91,7 +91,7 @@ def test_forward_3_shots(): error = error_calc(arr0[:430], analytical_p[:430], 430) if comm.comm.rank == 0: - print(f"Error for shot {Wave_obj.current_source} is {error} and test has passed equals {np.abs(error) < 0.01}", flush=True) + print(f"Error for shot {Wave_obj.current_sources} is {error} and test has passed equals {np.abs(error) < 0.01}", flush=True) error_all = COMM_WORLD.allreduce(error, op=MPI.SUM) error_all /= 3