Skip to content

Commit

Permalink
Only output inspection on MPI rank 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Luporini committed Jul 31, 2017
1 parent 3e4c60f commit 8eafcc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions python/slope.py
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8eafcc1

Please sign in to comment.