diff --git a/libsrc/general/mpi_interface.hpp b/libsrc/general/mpi_interface.hpp index fbe02bed..475ea7ee 100644 --- a/libsrc/general/mpi_interface.hpp +++ b/libsrc/general/mpi_interface.hpp @@ -35,6 +35,19 @@ namespace netgen inline MPI_Datatype MyGetMPIType ( ) { return MPI_DOUBLE; } + + template class Vec; + template <> + inline MPI_Datatype MyGetMPIType > () + { + static MPI_Datatype MPI_T = 0; + if (!MPI_T) + { + MPI_Type_contiguous ( 3, MPI_DOUBLE, &MPI_T); + MPI_Type_commit ( &MPI_T ); + } + return MPI_T; + }; inline void MyMPI_Send (int i, int dest, int tag)