pynucastro.reduction.reduction_utils module#
- class pynucastro.reduction.reduction_utils.FailedMPIImport(error=None, msg=None)[source]#
Bases:
object
Class that can replace an mpi4py.MPI import and will throw an error if used.
- pynucastro.reduction.reduction_utils.mpi_importer()[source]#
Lazy MPI import, where we only throw an error if the import failed and then we attempt to use the object.
- pynucastro.reduction.reduction_utils.mpi_numpy_decomp(MPI_N, MPI_rank, n)[source]#
Decompose a set of conditions for MPI_N MPI processes, where the conditions are a sequence of 3 sequences with ordering (composition_sequence, density_sequence, temperature_sequence). This structure for the dataset is necessary for the vectorized reduction algorithms.