diff --git a/src/language/modules/CoreModule.cpp b/src/language/modules/CoreModule.cpp index b73f7f0a2f94d2259daae18ab8e1476a28ad1f41..02bf902c96d1fc4b8a92b76fcb7df7b57eb1cf35 100644 --- a/src/language/modules/CoreModule.cpp +++ b/src/language/modules/CoreModule.cpp @@ -152,14 +152,13 @@ CoreModule::CoreModule() : BuiltinModule(true) bool has_stop_file = false; if (parallel::rank() == 0) { - std::filesystem::path stop_file("STOP"); + std::filesystem::path stop_file("stop"); if (std::filesystem::exists(stop_file)) { const double elapse_time = ExecutionStatManager::getInstance().getElapseTime(); const double stop_file_age = std::chrono::duration_cast<std::chrono::seconds>( - std::chrono::system_clock::now() - - std::chrono::clock_cast<std::chrono::system_clock>( - std::filesystem::last_write_time(stop_file))) + std::filesystem::file_time_type::clock::now() - + std::filesystem::last_write_time(stop_file)) .count(); has_stop_file = elapse_time > stop_file_age;