From ba3da8d267c462b49934fae0911fb30fe71864e1 Mon Sep 17 00:00:00 2001 From: Alexandre Olender Date: Fri, 28 Jun 2024 15:55:31 -0300 Subject: [PATCH] small debug --- spyro/io/basicio.py | 2 +- temp_forward_shot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spyro/io/basicio.py b/spyro/io/basicio.py index 6d71184a..1a35e83c 100644 --- a/spyro/io/basicio.py +++ b/spyro/io/basicio.py @@ -91,7 +91,7 @@ def wrapper(*args, **kwargs): _comm = args[0].comm for id_shots, shots_in_core in enumerate(shots_per_core_list): if is_owner(_comm, id_shots): - u, u_r = func(*args, **dict(kwargs, source_num=shots_in_core)) + u, u_r = func(*args, **dict(kwargs, source_nums=shots_in_core)) return u, u_r return wrapper diff --git a/temp_forward_shot.py b/temp_forward_shot.py index 71a0fabc..325150ae 100644 --- a/temp_forward_shot.py +++ b/temp_forward_shot.py @@ -24,7 +24,7 @@ def run_forward(dt): # spyro however supports both spatial parallelism and "shot" parallelism. dictionary["parallelism"] = { "type": "custom", # options: automatic (same number of cores for evey processor) or spatial - "seperate_shots" : True, + "seperate_shots": True, "shots_per_core": [[0, 1]], }