needed for curved elements in parallel

This commit is contained in:
Joachim Schoeberl 2011-08-08 13:34:08 +00:00
parent 150c7c1f10
commit b90dbcfbe5

View File

@ -35,6 +35,19 @@ namespace netgen
inline MPI_Datatype MyGetMPIType<double> ( ) inline MPI_Datatype MyGetMPIType<double> ( )
{ return MPI_DOUBLE; } { return MPI_DOUBLE; }
template <int S> class Vec;
template <>
inline MPI_Datatype MyGetMPIType<Vec<3> > ()
{
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) inline void MyMPI_Send (int i, int dest, int tag)