1
0
Fork 0
mirror of https://github.com/cosmo-sims/monofonIC.git synced 2024-09-19 17:03:45 +02:00

forgot to commit routine to query MPI versions string

This commit is contained in:
Oliver Hahn 2019-10-13 17:17:38 +02:00
parent 10ef0dc97d
commit 5055e8039b

View file

@ -90,6 +90,15 @@ MPI_Datatype GetMPIDatatype( void )
}
inline std::string GetMPIversion( void )
{
int len;
char mpi_lib_ver[MPI_MAX_LIBRARY_VERSION_STRING];
MPI_Get_library_version(mpi_lib_ver, &len);
return std::string(mpi_lib_ver);
}
#else
#if defined(_OPENMP)