| 580 | } |
| 581 | |
| 582 | std::vector<std::string> SimulationControl_Impl::partialYearEnvironmentPeriods() const { |
| 583 | StringVector result; |
| 584 | OptionalSqlFile oSqlFile = model().sqlFile(); |
| 585 | if (oSqlFile && runSimulationforWeatherFileRunPeriods()) { |
| 586 | RunPeriodVector runPeriods = this->runPeriods(); |
| 587 | StringVector environmentPeriods = oSqlFile->availableEnvPeriods(); |
| 588 | for (const RunPeriod& runPeriod : runPeriods) { |
| 589 | if (runPeriod.isPartialYear()) { |
| 590 | std::string rpName = runPeriod.name().get(); |
| 591 | auto it = std::find(environmentPeriods.begin(), environmentPeriods.end(), rpName); |
| 592 | if (it != environmentPeriods.end()) { |
| 593 | result.push_back(*it); |
| 594 | } |
| 595 | } |
| 596 | } |
| 597 | } |
| 598 | return result; |
| 599 | } |
| 600 | |
| 601 | std::vector<std::string> SimulationControl_Impl::repeatedIntervalEnvironmentPeriods() const { |
| 602 | StringVector result; |
nothing calls this directly
no test coverage detected