Loading src/TNL/Communicators/MpiCommunicator.h +17 −2 Original line number Diff line number Diff line Loading @@ -526,8 +526,18 @@ struct MPITypeResolver { static inline MPI_Datatype getType() { TNL_ASSERT_TRUE(false, "Fatal Error - Unknown MPI Type"); switch( sizeof( Type ) ) { case sizeof( char ): return MPI_CHAR; case sizeof( int ): return MPI_INT; case sizeof( short int ): return MPI_SHORT; case sizeof( long int ): return MPI_LONG; } TNL_ASSERT_TRUE(false, "Fatal Error - Unknown MPI Type"); }; }; Loading @@ -536,6 +546,11 @@ template<> struct MPITypeResolver< char > static inline MPI_Datatype getType(){return MPI_CHAR;}; }; template<> struct MPITypeResolver< int > { static inline MPI_Datatype getType(){return MPI_INT;}; }; template<> struct MPITypeResolver< short int > { static inline MPI_Datatype getType(){return MPI_SHORT;}; Loading Loading
src/TNL/Communicators/MpiCommunicator.h +17 −2 Original line number Diff line number Diff line Loading @@ -526,8 +526,18 @@ struct MPITypeResolver { static inline MPI_Datatype getType() { TNL_ASSERT_TRUE(false, "Fatal Error - Unknown MPI Type"); switch( sizeof( Type ) ) { case sizeof( char ): return MPI_CHAR; case sizeof( int ): return MPI_INT; case sizeof( short int ): return MPI_SHORT; case sizeof( long int ): return MPI_LONG; } TNL_ASSERT_TRUE(false, "Fatal Error - Unknown MPI Type"); }; }; Loading @@ -536,6 +546,11 @@ template<> struct MPITypeResolver< char > static inline MPI_Datatype getType(){return MPI_CHAR;}; }; template<> struct MPITypeResolver< int > { static inline MPI_Datatype getType(){return MPI_INT;}; }; template<> struct MPITypeResolver< short int > { static inline MPI_Datatype getType(){return MPI_SHORT;}; Loading