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