diff --git a/scripts/errors/dtypes/DtypeMissmatch.py b/scripts/errors/dtypes/DtypeMissmatch.py index 6094f9a4423efb39edc782911b52bb3a9fd47e39..9adfbb19e9d70ca30cf0e9de164cb426d43e44bc 100644 --- a/scripts/errors/dtypes/DtypeMissmatch.py +++ b/scripts/errors/dtypes/DtypeMissmatch.py @@ -53,12 +53,12 @@ def get_correct_case(type_1, size_1, send_func, recv_func, comm): comm_var_name = get_intercomm(comm, tm) type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_1, size_1, size_1) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) call.set_arg("buf", buf_name_1) call.set_arg("datatype", type_var_1) call.set_arg("count", size_1) call.set_arg("comm", comm_var_name) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) call.set_arg("buf", buf_name_2) call.set_arg("datatype", type_var_2) call.set_arg("count", size_1) @@ -79,13 +79,13 @@ def get_global_missmatch(type_1, type_2, size_1, size_2, send_func, recv_func, c comm_var_name = get_intercomm(comm, tm) type_var_1, buf_name_1, type_var_2, buf_name_2 = get_type_buffers(tm, type_1, type_2, size_1, size_2) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) call.set_has_error() call.set_arg("buf", buf_name_1) call.set_arg("datatype", type_var_1) call.set_arg("count", size_1) call.set_arg("comm", comm_var_name) - call = tm.get_instruction(identifier="MPICALL", rank_excuting=1) + call = tm.get_instruction(identifier="MPICALL", rank_excuting=0) call.set_has_error() call.set_arg("buf", buf_name_2) call.set_arg("datatype", type_var_2) @@ -196,6 +196,7 @@ class DtypeMissmatch(ErrorGenerator): correct_types_checked = set() for type_1, type_2, send_func, recv_func, comm in combinations_to_use: + # local missmatch only for one communicator if comm == "MPI_COMM_WORLD": yield get_local_missmatch(type_1, type_2, send_func, recv_func)