From 4b90ba9ca4673a24089212c1115c6c140561a50f Mon Sep 17 00:00:00 2001 From: toni Date: Tue, 15 May 2018 09:53:43 +0200 Subject: [PATCH] fixed some small bugus --- CMakeLists.txt | 4 +++- main.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19315a9..9bb5a20 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,8 +66,9 @@ else() -fstack-protector-all -g3 - #-O2 + -O2 -march=native + ) endif() @@ -97,6 +98,7 @@ ADD_EXECUTABLE( # needed external libraries TARGET_LINK_LIBRARIES( ${PROJECT_NAME} + stdc++fs # gtest # pthread ) diff --git a/main.cpp b/main.cpp index 82d3e29..2f939eb 100755 --- a/main.cpp +++ b/main.cpp @@ -241,12 +241,12 @@ Stats::Statistics run(Settings::DataSetup setup, int numFile, std::string /* plot in gp file */ std::ofstream plotFile; - plotFile.open(evalDir + "/" + std::to_string(numFile) + "_" + std::to_string(t) + ".gp"); + plotFile.open(evalDir.string() + "/" + std::to_string(numFile) + "_" + std::to_string(t) + ".gp"); plot.saveToFile(plotFile); plotFile.close(); //save also a png image, just for a better overview - plot.printOverview(evalDir + "/" + std::to_string(numFile) + "_" + std::to_string(t)); + plot.printOverview(evalDir.string() + "/" + std::to_string(numFile) + "_" + std::to_string(t)); plot.plot(); return errorStats; @@ -260,9 +260,9 @@ int main(int argc, char** argv) { Stats::Statistics statsQuantil; Stats::Statistics tmp; - std::string evaluationName = "museum/Path3_Museum_KLD_SimpleDistance"; + std::string evaluationName = "museum/tmp"; - for(int i = 0; i < 100; ++i){ + for(int i = 0; i < 1; ++i){ //TODO: in transition die distance über KLD noch einkommentieren als Test