Merge branch 'add_forgotten_isend' into 'master'

add forgotten isend

See merge request jschoeberl/netgen!221
This commit is contained in:
Christopher Lackner 2019-08-28 14:07:13 +00:00
commit 6d874bece8

View File

@ -164,7 +164,15 @@ namespace ngcore
MPI_Isend (&val, 1, GetMPIType<T>(), dest, tag, comm, &request); MPI_Isend (&val, 1, GetMPIType<T>(), dest, tag, comm, &request);
return request; return request;
} }
template<typename T, typename T2 = decltype(GetMPIType<T>())>
MPI_Request ISend (const FlatArray<T> & s, int dest, int tag) const
{
MPI_Request request;
MPI_Isend (s.Data(), s.Size(), GetMPIType<T>(), dest, tag, comm, &request);
return request;
}
template<typename T, typename T2 = decltype(GetMPIType<T>())> template<typename T, typename T2 = decltype(GetMPIType<T>())>
MPI_Request IRecv (T & val, int src, int tag) const MPI_Request IRecv (T & val, int src, int tag) const
{ {