Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[cppcheck] Don't let fields uninitialized.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 6 May 2021 18:21:59 +0000 (20:21 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Tue, 25 May 2021 14:59:28 +0000 (16:59 +0200)
include/simgrid/kernel/routing/ClusterZone.hpp

index 3fa1ad1..489a91a 100644 (file)
@@ -96,9 +96,10 @@ class XBT_PRIVATE ClusterBase : public ClusterZone {
   bool has_loopback_                = false;
   unsigned long num_links_per_node_ = 1; /* may be 1 (if only a private link), 2 or 3 (if limiter and loopback) */
 
-  s4u::Link::SharingPolicy link_sharing_policy_; //!< cluster links: sharing policy
-  double link_bw_;                               //!< cluster links: bandwidth
-  double link_lat_;                              //!< cluster links: latency
+  s4u::Link::SharingPolicy link_sharing_policy_ =
+      s4u::Link::SharingPolicy::SPLITDUPLEX; //!< cluster links: sharing policy
+  double link_bw_  = 0.0;                    //!< cluster links: bandwidth
+  double link_lat_ = 0.0;                    //!< cluster links: latency
 
 protected:
   using ClusterZone::ClusterZone;