Skip to content

Commit

Permalink
Fix reset order (#2304)
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin authored Aug 5, 2024
1 parent bca91fc commit c2c6afc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ class yearRandomNumbers

void reset()
{
// General
pNbClustersByArea.assign(pNbAreas, 0);

// Thermal noises
for (uint a = 0; a != pNbAreas; a++)
{
pThermalNoisesByArea[a].assign(pNbClustersByArea[a], 0);
}

// General
pNbClustersByArea.assign(pNbAreas, 0);

// Reservoir levels, spilled and unsupplied energy costs
pReservoirLevels.assign(pNbAreas, 0);
pUnsuppliedEnergy.assign(pNbAreas, 0);
Expand Down

0 comments on commit c2c6afc

Please sign in to comment.