diff --git a/include/picongpu/plugins/openPMD/WriteSpecies.hpp b/include/picongpu/plugins/openPMD/WriteSpecies.hpp index 035ec99e39..d2d6e86a3f 100644 --- a/include/picongpu/plugins/openPMD/WriteSpecies.hpp +++ b/include/picongpu/plugins/openPMD/WriteSpecies.hpp @@ -426,13 +426,13 @@ namespace picongpu } // @todo combine this and the MPI_Gather above to a single gather for better scaling - uint64_t numRounds[mpiSize]; + std::vector numRounds(mpiSize); MPI_CHECK(MPI_Allgather( &requiredDumpRounds, 1, MPI_UNSIGNED_LONG_LONG, - numRounds, + numRounds.data(), 1, MPI_UNSIGNED_LONG_LONG, gc.getCommunicator().getMPIComm()));