Skip to main content
Sign in
Snippets Groups Projects
Commit c0b35d73 authored by Jammer, Tim's avatar Jammer, Tim
Browse files

fix leaking communicator (#11)

parent 283dc071
No related branches found
No related tags found
1 merge request!20Parsing and tools updates
......@@ -45,14 +45,14 @@ class CorrectColl(ErrorGenerator):
for func_to_use in self.topology_functions:
tm = get_collective_template(func_to_use)
tm.set_description("Correct-" + func_to_use, "Correct code")
comm_free = CorrectMPICallFactory().mpi_comm_free()
comm_free.set_arg("comm", "&mpi_comm_0")
tm.register_instruction(comm_free)
yield tm
tm.set_description("Correct-" + func_to_use + "-mpi_cart_get", "Correct code")
cart_get = CorrectMPICallFactory().mpi_cart_get()
cart_get.set_arg("comm_cart", "mpi_comm_0")
tm.register_instruction(cart_get)
comm_free=CorrectMPICallFactory().mpi_comm_free()
comm_free.set_arg("comm","&mpi_comm_0")
tm.register_instruction(comm_free)
tm.insert_instruction(cart_get,before_instruction=comm_free)
yield tm
if generate_level <= BASIC_TEST_LEVEL:
break
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment