Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 20, 2024
1 parent 1fcc874 commit be9f174
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/libs/antares/study/parts/short-term-storage/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,13 @@ bool STStorageInput::LoadConstraintsFromIniFile(const fs::path& parent_path)
int hourVal = std::stoi(hour);
hourSet.insert(hourVal);
}
// Add this group to the `hours` vec
additional_constraints.constraints.push_back(
{.hours = hourSet, .localIndex = localIndex});
++localIndex;
if (!hourSet.empty())
{
// Add this group to the `hours` vec
additional_constraints.constraints.push_back(
{.hours = hourSet, .localIndex = localIndex});
++localIndex;
}
}
}
}
Expand Down

0 comments on commit be9f174

Please sign in to comment.