Skip to content

Commit

Permalink
Fix segfault on BP studies (#2598)
Browse files Browse the repository at this point in the history
flomnes authored Jan 28, 2025
1 parent a464fec commit 65938bd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -38,8 +38,7 @@ bool thermalTSNumberData::reset(const Study& study)
// solver or not.
// WARNING: At this point, the variable pArea->thermal.list.size()
// might not be valid (because not really initialized yet)
uint clusterCount = (study.usedByTheSolver) ? (pArea->thermal.list.enabledCount())
: pArea->thermal.list.allClustersCount();
uint clusterCount = pArea->thermal.list.allClustersCount();

// Resize
pTSNumberRules.reset(clusterCount, nbYears);

0 comments on commit 65938bd

Please sign in to comment.