Skip to content

Commit

Permalink
#1838: lb: move default WeightedMessages parameters to ctor
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Aug 4, 2022
1 parent 1b5a689 commit 4d41ed0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vt/vrt/collection/balance/model/weighted_messages.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ struct WeightedMessages : public ComposedModel {
*/
explicit WeightedMessages(
std::shared_ptr<balance::LoadModel> base,
TimeType in_per_msg_weight, TimeType in_per_byte_weight
TimeType in_per_msg_weight = 0.0, TimeType in_per_byte_weight = 1.0
) : ComposedModel(base),
per_msg_weight_(in_per_msg_weight),
per_byte_weight_(in_per_byte_weight) { }
Expand All @@ -78,8 +78,8 @@ struct WeightedMessages : public ComposedModel {
// observer pointer to the underlying comm data
std::unordered_map<PhaseType, CommMapType> const* proc_comm_;

TimeType per_msg_weight_ = 0.0;
TimeType per_byte_weight_ = 1.0;
TimeType per_msg_weight_;
TimeType per_byte_weight_;
};

}}}} // namespace vt::vrt::collection::balance
Expand Down

0 comments on commit 4d41ed0

Please sign in to comment.