Skip to content

Commit

Permalink
Increased the default delay time between starting processes in parallel.
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobeost authored Jan 24, 2025
1 parent e35c718 commit 3c712cf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pytrnsys/rsim/runParallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,14 @@ def getNumberOfCPU():


def runParallel(
cmds, reduceCpu=0, outputFile=False, estimedCPUTime=0.33, delayTime=0.3, trackingFile=None, masterFile=None
cmds, reduceCpu=0, outputFile=False, estimedCPUTime=0.33, delayTime=10, trackingFile=None, masterFile=None
):
"""Exec commands in parallel in multiple process
(as much as we have CPU)
The delay time is used to prevent multiple instances of trnsys trying to access the files at the same time.
This is especially problematic with type 56, which not only reads several files.
It also creates multiple files at the start of the simulation.
"""
logDict = {}
if trackingFile != None:
Expand Down

0 comments on commit 3c712cf

Please sign in to comment.