1 /* Copyright (c) 2007-2017. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "src/simix/smx_private.h"
13 void Status::empty(MPI_Status * status)
15 if(status != MPI_STATUS_IGNORE) {
16 status->MPI_SOURCE = MPI_ANY_SOURCE;
17 status->MPI_TAG = MPI_ANY_TAG;
18 status->MPI_ERROR = MPI_SUCCESS;
23 int Status::get_count(MPI_Status * status, MPI_Datatype datatype)
25 return status->count / datatype->size();