Skip to content

Commit eefb98f

Browse files
committed
TL: minor changes
1 parent b45170e commit eefb98f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pySDC/helpers/fieldsIO.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ def setupMPI(cls, comm: MPI.Intracomm, iLoc, nLoc):
518518
cls.comm = comm
519519
cls.iLoc = iLoc
520520
cls.nLoc = nLoc
521-
cls.mpiFile = None
521+
cls.mpiFile:MPI.File = None
522522

523523
@property
524524
def MPI_ON(self):

pySDC/playgrounds/dedalus/sdc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,15 +763,17 @@ def initSpaceTimeMPI(nProcSpace=None, nProcTime=None, groupTime=False):
763763
if gRank == 0:
764764
print(' -- finished MPI initialization')
765765

766-
# MPI decomposition -- space are close
766+
# MPI space-time decomposition
767767
if groupTime:
768+
# time-ranks are consecutive global ranks
768769
sColor = gRank % nProcTime
769770
sComm = gComm.Split(sColor, gRank)
770771
gComm.Barrier()
771772
tColor = (gRank - gRank % nProcTime) / nProcTime
772773
tComm = gComm.Split(tColor, gRank)
773774
gComm.Barrier()
774775
else:
776+
# space-ranks are consecutive global ranks
775777
tColor = gRank % nProcSpace
776778
tComm = gComm.Split(tColor, gRank)
777779
gComm.Barrier()

0 commit comments

Comments
 (0)