Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
For sonar.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 11 Jun 2021 07:57:38 +0000 (09:57 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 11 Jun 2021 07:57:38 +0000 (09:57 +0200)
src/smpi/internals/smpi_deployment.cpp
src/surf/sg_platf.cpp

index a11042e..12688f0 100644 (file)
@@ -20,7 +20,7 @@ static int universe_size = 0;
 
 class Instance {
 public:
-  Instance(int max_no_processes) : size_(max_no_processes)
+  explicit Instance(int max_no_processes) : size_(max_no_processes)
   {
     auto* group = new simgrid::smpi::Group(size_);
     comm_world_ = new simgrid::smpi::Comm(group, nullptr, false, -1);
index ae6e3db..d015d71 100644 (file)
@@ -533,7 +533,7 @@ static simgrid::kernel::routing::NetZoneImpl*
 sg_platf_create_zone(const simgrid::kernel::routing::ZoneCreationArgs* zone)
 {
   /* search the routing model */
-  simgrid::s4u::NetZone* new_zone = nullptr;
+  const simgrid::s4u::NetZone* new_zone = nullptr;
 
   if (strcasecmp(zone->routing.c_str(), "Cluster") == 0) {
     new_zone = simgrid::s4u::create_star_zone(zone->id);