MCPcopy Create free account
hub / github.com/NanoComp/meep / get_num_groups

Function get_num_groups

python/simulation.py:6274–6280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6272
6273
6274def get_num_groups():
6275 # Lazy import
6276 from mpi4py import MPI
6277
6278 comm = MPI.COMM_WORLD
6279
6280 return comm.allreduce(int(mp.my_rank() == 0), op=MPI.SUM)
6281
6282
6283def get_group_masters():

Callers 1

merge_subgroup_dataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected