Skip to content

Commit

Permalink
more conv
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Oct 15, 2024
1 parent 5901006 commit 40abe46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/solver/simulation/solver_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ void annualCostsStatistics::writeUpdateTimes(IResultWriter& writer) const
buffer << "MAX (ms) : " << updateTime.costMax << "\n";

std::string s = buffer.str();
writer.addEntryFromBuffer(updateTimeFilename.string(), s);
writer.addEntryFromBuffer(updateTimeFilename, s);
}

void annualCostsStatistics::writeOptimizationTimeToOutput(IResultWriter& writer) const
Expand All @@ -161,7 +161,7 @@ void annualCostsStatistics::writeOptimizationTimeToOutput(IResultWriter& writer)
buffer << "MAX (ms) : " << optimizationTime2.costMax << "\n";

std::string s = buffer.str();
writer.addEntryFromBuffer(optimizationTimeFilename.string(), s);
writer.addEntryFromBuffer(optimizationTimeFilename, s);
}

} // namespace Antares::Solver::Simulation
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ public:
std::filesystem::path path = std::string(results.data.originalOutput);
path /= "grid";
path /= "digest.txt";
writer.addEntryFromBuffer(path.string(), digestBuffer);
writer.addEntryFromBuffer(path, digestBuffer);
}

private:
Expand Down

0 comments on commit 40abe46

Please sign in to comment.