Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix segfault caused by uninitialized `cluster.series.timeseriesNumber…
…s` (#1876) ```cpp void Area::resizeAllTimeseriesNumbers(uint nbYears) { assert(hydro.series and "series must not be nullptr !"); load.series.timeseriesNumbers.reset(1, nbYears); solar.series.timeseriesNumbers.reset(1, nbYears); wind.series.timeseriesNumbers.reset(1, nbYears); hydro.series->timeseriesNumbers.reset(1, nbYears); for (auto& namedLink : links) { AreaLink* link = namedLink.second; link->timeseriesNumbers.reset(1, nbYears); } thermal.resizeAllTimeseriesNumbers(nbYears); // resize is called here renewable.resizeAllTimeseriesNumbers(nbYears); // resize is called here } ```
- Loading branch information