diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index 027f060e..2c490053 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -270,7 +270,8 @@ namespace netgen inline void MyMPI_Bcast (NgArray & s, NgMPI_Comm comm) { int size = s.Size(); - MyMPI_Bcast (size, comm); + // MyMPI_Bcast (size, comm); + comm.Bcast(size); // if (MyMPI_GetId(comm) != 0) s.SetSize (size); if (comm.Rank() != 0) s.SetSize (size); MPI_Bcast (&s[0], size, GetMPIType(), 0, comm);