]> AND Public Git Repository - simgrid.git/blobdiff - src/smpi/mpi/smpi_status.cpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid into no_simix_global
[simgrid.git] / src / smpi / mpi / smpi_status.cpp
index 7c8d6e1d9ea4073644eb1ac98685ca249e415667..1c43dbcb7a2b178d5055a46ee2fe70ee8cd63637 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2021. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -6,7 +6,6 @@
 #include "smpi_status.hpp"
 #include "private.hpp"
 #include "smpi_datatype.hpp"
-#include "src/simix/smx_private.hpp"
 
 namespace simgrid{
 namespace smpi{
@@ -32,11 +31,12 @@ void Status::set_cancelled(MPI_Status * status, int flag)
   status->cancelled=flag;
 }
 
-void Status::set_elements (MPI_Status * status, MPI_Datatype , int count){
+void Status::set_elements(MPI_Status* status, const Datatype*, int count)
+{
   status->count=count;
 }
 
-int Status::get_count(const MPI_Status * status, MPI_Datatype datatype)
+int Status::get_count(const MPI_Status* status, const Datatype* datatype)
 {
   return status->count / datatype->size();
 }