From 8eafcc1a92272909be912ece9144decc63e920c2 Mon Sep 17 00:00:00 2001 From: Fabio Luporini Date: Mon, 31 Jul 2017 11:03:04 +0100 Subject: [PATCH] Only output inspection on MPI rank 0 --- python/slope.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/python/slope.py b/python/slope.py index 118af55..35d292c 100644 --- a/python/slope.py +++ b/python/slope.py @@ -128,8 +128,10 @@ class Inspector(object): int seedTilePoint = %(seed)d; insp_run (insp, seedTilePoint); - %(output_insp)s - %(output_vtk)s + if (rank == 0) { + %(output_insp)s + %(output_vtk)s + } executor_t* exec = exec_init (insp); insp_free (insp);