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:
parent
10ef0dc97d
commit
5055e8039b
1 changed files with 9 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue