diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index a896338f..09911ff6 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -234,10 +234,11 @@ namespace netgen - inline void MyMPI_Send ( int *& s, int & len, int dest, int tag) + inline void MyMPI_Send ( int *& s, int len, int dest, int tag) { - MPI_Send( &len, 1, MPI_INT, dest, tag, MPI_COMM_WORLD); - MPI_Send( s, len, MPI_INT, dest, tag, MPI_COMM_WORLD); + int hlen = len; + MPI_Send( &hen, 1, MPI_INT, dest, tag, MPI_COMM_WORLD); + MPI_Send( s, len, MPI_INT, dest, tag, MPI_COMM_WORLD); }