Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Less implicit casts.
[simgrid.git] / include / simgrid / smpi / smpi_replay.hpp
index b9ff2c2..ec856a6 100644 (file)
@@ -65,9 +65,9 @@ class SendRecvParser : public ActionArgParser {
 public:
   /* communication partner; if we send, this is the receiver and vice versa */
   int partner;
-  double size;
+  size_t size;
   int tag;
-  MPI_Datatype datatype1 = MPI_DEFAULT_TYPE;
+  MPI_Datatype datatype1;
 
   void parse(xbt::ReplayAction& action, const std::string& name) override;
 };
@@ -96,14 +96,14 @@ public:
 
 class CollCommParser : public ActionArgParser {
 public:
-  double size;
+  size_t size;
   double comp_size;
   int send_size;
   int recv_size;
   unsigned comm_size; // size of communicator
-  int root               = 0;
-  MPI_Datatype datatype1 = MPI_DEFAULT_TYPE;
-  MPI_Datatype datatype2 = MPI_DEFAULT_TYPE;
+  int root;
+  MPI_Datatype datatype1;
+  MPI_Datatype datatype2;
 };
 
 class BcastArgParser : public CollCommParser {