diff --git a/CMakeLists.txt b/CMakeLists.txt index 4cff5b41..9a28aeae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ set(PROJECT_NAME entity) project( ${PROJECT_NAME} - VERSION 1.3.0 + VERSION 1.3.2 LANGUAGES CXX C) add_compile_options("-D ENTITY_VERSION=\"${PROJECT_VERSION}\"") set(hash_cmd "git diff --quiet src/ && echo $(git rev-parse HEAD) ") diff --git a/src/framework/parameters.cpp b/src/framework/parameters.cpp index 10487885..9c318887 100644 --- a/src/framework/parameters.cpp +++ b/src/framework/parameters.cpp @@ -1108,9 +1108,8 @@ namespace ntt { CallOnce([&]() { std::ofstream metadata; metadata.open(path); - metadata << "[metadata]\n" - << " time = " << time << "\n\n" - << data() << std::endl; + metadata << fmt::format("[metadata]\n time = %f\n\n", time) << data() + << std::endl; metadata.close(); }); }