Skip to content

Commit

Permalink
Fix broken path for study update
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonMarechal25 committed Oct 30, 2023
1 parent 225bd24 commit 0b50e94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/cpp/exe/full_run/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ int main(int argc, char** argv) {
mpi::communicator world;
auto options_parser = FullRunOptionsParser();
std::filesystem::path xpansion_output_dir;
std::filesystem::path archive_path;
options_parser.Parse(argc, argv);
if (world.rank() == 0) {
try {
ProblemGeneration pbg(options_parser);
pbg.updateProblems();
xpansion_output_dir = pbg.updateProblems();

} catch (std::exception& e) {
std::cerr << "error: " << e.what() << std::endl;
Expand Down
3 changes: 2 additions & 1 deletion src/cpp/lpnamer/main/ProblemGeneration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ void CreateDirectories(const std::filesystem::path& output_path) {

ProblemGeneration::ProblemGeneration(ProblemGenerationOptions& options)
: options_(options) {}
void ProblemGeneration::updateProblems() {
std::filesystem::path ProblemGeneration::updateProblems() {
auto xpansion_output_dir = options_.XpansionOutputDir();
auto archive_path = options_.ArchivePath();
const auto log_file_path =
Expand All @@ -60,6 +60,7 @@ void ProblemGeneration::updateProblems() {
RunProblemGeneration(xpansion_output_dir, master_formulation,
additionalConstraintFilename_l, archive_path, logger,
log_file_path, weights_file, unnamed_problems);
return xpansion_output_dir;
}

struct Version {
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/lpnamer/main/include/ProblemGeneration.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
class ProblemGeneration {
public:
explicit ProblemGeneration(ProblemGenerationOptions& options);
void updateProblems();
std::filesystem::path updateProblems();
ProblemGenerationOptions& options_;

virtual void RunProblemGeneration(
Expand Down

0 comments on commit 0b50e94

Please sign in to comment.