From b90dbcfbe58d2f1a286e75c2f1e797492ecc89a0 Mon Sep 17 00:00:00 2001 From: Joachim Schoeberl Date: Mon, 8 Aug 2011 13:34:08 +0000 Subject: [PATCH] needed for curved elements in parallel --- libsrc/general/mpi_interface.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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)