Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
youngmit committed Aug 18, 2021
1 parent 7125fbd commit d622682
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions armi/mpiActions.py
Expand Up @@ -563,13 +563,16 @@ def _distributeParamAssignments(self):
if armi.MPI_RANK == 0:
data = {
(pName, pdType.__name__): pDef.assigned
for (pName, pdType), pDef in parameterDefinitions.ALL_DEFINITIONS.items()
for (
pName,
pdType,
), pDef in parameterDefinitions.ALL_DEFINITIONS.items()
}

data = armi.MPI_COMM.bcast(data, root=0)

if armi.MPI_RANK != 0:
for (pName, pdType), pDef in parameterDefinitions.ALL_DEFINITIONS.items():
for (pName, pdType), pDef in parameterDefinitions.ALL_DEFINITIONS.items():
pDef.assigned = data[pName, pdType.__name__]

def _distributeInterfaces(self):
Expand Down

0 comments on commit d622682

Please sign in to comment.