Skip to content

Commit

Permalink
revert change for cluster->isActive
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Feb 21, 2025
1 parent d1d257b commit daa12f1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ void BindingConstraint::weight(const AreaLink* lnk, double w)

void BindingConstraint::weight(const ThermalCluster* cluster, double w)
{
if (cluster)
if (cluster && cluster->isActive())
{
if (Utils::isZero(w))
{
Expand Down Expand Up @@ -221,7 +221,7 @@ void BindingConstraint::offset(const AreaLink* lnk, int o)

void BindingConstraint::offset(const ThermalCluster* cluster, int o)
{
if (cluster)
if (cluster && cluster->isActive())
{
if (Utils::isZero(o))
{
Expand Down

0 comments on commit daa12f1

Please sign in to comment.