Skip to content

Commit

Permalink
added long double to MPI communicator (plumed#600)
Browse files Browse the repository at this point in the history
  • Loading branch information
invemichele authored Jul 13, 2020
1 parent 9a30f8e commit 5580837
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/Communicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ template<> MPI_Datatype Communicator::getMPIType<char>() { return MPI_CHAR;}
template<> MPI_Datatype Communicator::getMPIType<unsigned>() { return MPI_UNSIGNED;}
template<> MPI_Datatype Communicator::getMPIType<AtomNumber>() { return MPI_UNSIGNED;}
template<> MPI_Datatype Communicator::getMPIType<long unsigned>() { return MPI_UNSIGNED_LONG;}
template<> MPI_Datatype Communicator::getMPIType<long double>() { return MPI_LONG_DOUBLE;}
#else
template<> MPI_Datatype Communicator::getMPIType<float>() { return MPI_Datatype();}
template<> MPI_Datatype Communicator::getMPIType<double>() { return MPI_Datatype();}
Expand All @@ -283,6 +284,7 @@ template<> MPI_Datatype Communicator::getMPIType<char>() { return MPI_Datatype()
template<> MPI_Datatype Communicator::getMPIType<unsigned>() { return MPI_Datatype();}
template<> MPI_Datatype Communicator::getMPIType<AtomNumber>() { return MPI_Datatype();}
template<> MPI_Datatype Communicator::getMPIType<long unsigned>() { return MPI_Datatype();}
template<> MPI_Datatype Communicator::getMPIType<long double>() { return MPI_Datatype();}
#endif


Expand Down

0 comments on commit 5580837

Please sign in to comment.