PABLO  0.1
PArallel Balanced Linear Octree
 All Classes Functions Variables Pages
Class_Comm_Buffer.tpp
1 template<class T>
3  MPI_Datatype datatype = convert<T>();
4  int error = MPI_Pack(&val,1,datatype,commBuffer,commBufferSize,&pos,comm);
5 };
6 
7 template<class T>
8 void Class_Comm_Buffer::read(T& val) {
9  MPI_Datatype datatype = convert<T>();
10  int error = MPI_Unpack(commBuffer,commBufferSize,&pos,&val,1,datatype,comm);
11 };
12