Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes committed Feb 10, 2025
1 parent 4a554e8 commit a632689
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/libs/antares/study/area/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1217,12 +1217,7 @@ bool AreaList::loadFromFolder(const StudyLoadOptions& options)
// in order to allocate data with all renewable clusters.

fs::path renewClusterPath = pStudy.folderInput / "renewables" / "clusters";
if (!fs::is_directory(renewClusterPath))
{
logs.info() << "Renewable directory missing " << renewClusterPath;
logs.info() << "Skipped loading renewable clusters";
}
else
if (fs::is_directory(renewClusterPath))
{
auto end = areas.end();
for (auto i = areas.begin(); i != end; ++i)
Expand All @@ -1233,6 +1228,11 @@ bool AreaList::loadFromFolder(const StudyLoadOptions& options)
ret = area.renewable.list.validateClusters() && ret;
}
}
else
{
logs.info() << "Renewable directory missing " << renewClusterPath;
logs.info() << "Skipped loading renewable clusters";
}
}

// Prepare
Expand Down

0 comments on commit a632689

Please sign in to comment.