To replace this:
|
mpi_comm = dcoll.mpi_communicator |
|
if mpi_comm is None: |
|
return dt_factor * (1 / c) |
|
|
|
return (1 / c) * mpi_comm.allreduce(dt_factor, op=MPI.MIN) |
and implement the nodal reductions in a distributed setting. Initially, we'll just use MPI, but likely we'll need to use a different abstraction. That abstraction doesn't exist yet, hence the request for this stopgap. Once it exists, it'll be convenient if we can change that centrally.
Spotted while reviewing #108.
@thomasgibson Could you put that on your pile?
cc @matthiasdiener
To replace this:
grudge/examples/wave/wave-op-mpi.py
Lines 125 to 129 in 4a3b8b9
and implement the nodal reductions in a distributed setting. Initially, we'll just use MPI, but likely we'll need to use a different abstraction. That abstraction doesn't exist yet, hence the request for this stopgap. Once it exists, it'll be convenient if we can change that centrally.
Spotted while reviewing #108.
@thomasgibson Could you put that on your pile?
cc @matthiasdiener