X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/84402e8e2ee2a2d0bef25fdceb0a263ed8b471f6..a6d5fdeb22df5f5b1ca02a3dad8ba6094202a4f3:/src/smpi/mpi/smpi_status.cpp diff --git a/src/smpi/mpi/smpi_status.cpp b/src/smpi/mpi/smpi_status.cpp index b048fe74bc..675fb2e4fe 100644 --- a/src/smpi/mpi/smpi_status.cpp +++ b/src/smpi/mpi/smpi_status.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2007-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2007-2023. 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,10 +6,8 @@ #include "smpi_status.hpp" #include "private.hpp" #include "smpi_datatype.hpp" -#include "src/simix/smx_private.hpp" -namespace simgrid{ -namespace smpi{ +namespace simgrid::smpi { void Status::empty(MPI_Status * status) { @@ -37,10 +35,9 @@ 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(); } -} -} +} // namespace simgrid::smpi