DARMA-tasking / LB-analysis-framework

Analysis framework for exploring, testing, and comparing load balancing strategies
Other
3 stars 1 forks source link

Define & implement generic rank-to-rank lower comparison operator #412

Open ppebay opened 1 year ago

ppebay commented 1 year ago

PR #325 introduced the following less-than comparison operator of Rank instances:

    def __lt__(self, other):
        return self.get_load() < other.get_load()

However we do not necessarily want this to be always the comparison operator between ranks, as they can be sorted by other QoIs (like index, work, etc.). This issue must be discussed and only after consensus is reached, implemented more generically.