Skip to content

Commit b729e90

Browse files
author
Jonathan Rocher
committed
Made the hello world more interesting.
1 parent 73bba53 commit b729e90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

MPI/hello_world.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"""
55

66
from mpi4py import MPI
7-
import os
8-
9-
print 'Hello, World from %s!' % os.getpid()
7+
comm = MPI.COMM_WORLD
8+
myrank = comm.Get_rank()
9+
print 'Hello, World from', myrank

0 commit comments

Comments
 (0)