Function utils::detail::cachedMPISize

Function Documentation

inline auto utils::detail::cachedMPISize() -> int&

Storage for the number of MPI ranks, filled in by initMPI()

Returns:

A reference to a function-local static, 1 until initMPI() has run (and always 1 when this build was not compiled with SLUG_MPI) – see cachedMPIRank() for why this is cached