Skip to content

Commit 8bb9d6c

Browse files
committed
Create sct4.py
1 parent fbff48a commit 8bb9d6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

sct4.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
from mpi4py import MPI
2+
comm = MPI.COMM_WORLD
3+
rank=comm.rank
4+
size=comm.size
5+
print 'Rank:',rank
6+
print 'Node Count:',size
7+
print 9**(rank+3)

0 commit comments

Comments
 (0)