diff --git a/changelog-entries/220.md b/changelog-entries/220.md new file mode 100644 index 00000000..41f36cdf --- /dev/null +++ b/changelog-entries/220.md @@ -0,0 +1 @@ +- Check strict naming scheme for meshes in replay mode, mesh file names must include `.dt` with `` the coupling iteration. This is to allow numbers elsewhere in the file name or path. diff --git a/src/modes.cpp b/src/modes.cpp index 97973ac6..40ce4e34 100644 --- a/src/modes.cpp +++ b/src/modes.cpp @@ -67,7 +67,8 @@ void aste::runReplayMode(const aste::ExecutionContext &context, const std::strin ASTE_DEBUG << "Looking for dt = " << asteConfiguration.startdt; for (const auto &mesh : asteConfiguration.asteInterfaces.front().meshes) { - if (mesh.filename().find(std::to_string(asteConfiguration.startdt)) == std::string::npos) + auto meshfilename = std::filesystem::path(mesh.filename()).filename().string(); + if (meshfilename.find(".dt" + std::to_string(asteConfiguration.startdt)) == std::string::npos) round++; else break;