Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
A few Sonar smells.
[simgrid.git] / src / smpi / internals / smpi_utils.cpp
index 8d1fec4..95f0f0b 100644 (file)
@@ -357,9 +357,9 @@ int check_collectives_ordering(MPI_Comm comm, std::string call){
       collective_calls.emplace(comm->id(), std::vector<std::string>{call});
     }else{
       //are we the first ? add the call
-      if (vec->second.size() == (count)){
+      if (vec->second.size() == count) {
         vec->second.push_back(call);
-      } else if (vec->second.size() > count){
+      } else if (vec->second.size() > count) {
         if (vec->second[count] != call){
           XBT_WARN("Collective operation mismatch. For process %ld, expected %s, got %s", simgrid::s4u::this_actor::get_pid(), vec->second[count].c_str(), call.c_str());
           return MPI_ERR_OTHER;