Skip to content

Commit

Permalink
Add zero padded versions of index variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
njcarriero committed Apr 11, 2024
1 parent 5f08b8b commit 2ea7406
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions disbatchc/disBatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -1501,6 +1501,8 @@ def main(self):
break

self.localEnv['DISBATCH_STREAM_INDEX'], self.localEnv['DISBATCH_REPEAT_INDEX'], self.localEnv['DISBATCH_TASKID'] = str(ti.taskStreamIndex), str(ti.taskRepIndex), str(ti.taskId)
self.localEnv['DISBATCH_STREAM_INDEX_ZP'], self.localEnv['DISBATCH_REPEAT_INDEX_ZP'], self.localEnv['DISBATCH_TASKID_ZP'] = '%06d'%ti.taskStreamIndex, '%06d'%ti.taskRepIndex, '%06d'%ti.taskId

logger.info('Cylinder %d executing %s.', self.cylinderRank, ti)
t0 = time.time()
try:
Expand Down

0 comments on commit 2ea7406

Please sign in to comment.