Skip to content

Commit df6fa2b

Browse files
committed
TL: debug
1 parent fd02fc5 commit df6fa2b

File tree

1 file changed

+3
-2
lines changed
  • pySDC/playgrounds/dedalus/problems

1 file changed

+3
-2
lines changed

pySDC/playgrounds/dedalus/problems/rbc.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,8 +257,9 @@ def runSimulation(cls, runDir, tEnd, baseDt, tBeg=0, logEvery=100,
257257
p = cls(**pParams)
258258

259259
if writeDecomposition:
260+
decompFile = f"{runDir}/decomp.txt"
260261
if MPI_RANK == 0:
261-
with open("{runDir}/distrib.txt", "r") as f:
262+
with open(decompFile, "r") as f:
262263
f.write("Parallel distribution on compute cores\n")
263264
f.write(f" -- space parallelization on {p.sComm.Get_size()} procs\n")
264265
if timeParallel:
@@ -268,7 +269,7 @@ def runSimulation(cls, runDir, tEnd, baseDt, tBeg=0, logEvery=100,
268269
labels = ["x", "y", "z"]
269270
COMM_WORLD.Barrier()
270271
sleep(0.0001*MPI_RANK)
271-
with open("{runDir}/distrib.txt", "a") as f:
272+
with open(decompFile, "a") as f:
272273
if timeParallel:
273274
out = f"P{gComm.Get_rank()}-S{sComm.Get_rank()}-T{tComm.Get_rank()} :\n"
274275
else:

0 commit comments

Comments
 (0)