Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F81815766
mpi.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, Sep 8, 02:09
Size
411 B
Mime Type
text/x-objective-c
Expires
Tue, Sep 10, 02:09 (1 d, 21 h)
Engine
blob
Format
Raw Data
Handle
20606553
Attached To
rPNBODY pNbody
mpi.py
View Options
from
numpy
import
*
import
types
#import libutil
import
sys
class
MpiClass
:
def
__init__
(
self
,
MPI
=
None
):
self
.
MPI
=
MPI
if
MPI
!=
None
:
self
.
ThisTask
=
MPI
.
COMM_WORLD
.
Get_rank
()
self
.
NTask
=
MPI
.
COMM_WORLD
.
Get_size
()
self
.
Procnm
=
MPI
.
Get_processor_name
()
else
:
self
.
ThisTask
=
0
self
.
NTask
=
1
self
.
Procnm
=
""
Event Timeline
Log In to Comment