-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix undefined behavior when getting the current working directory from std::filesystem #728
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few nitpicks
I removed the As for |
All changes are limited to the copy of the library in `src/external/colvars`. The following is a list of relevant pull requests (bugfixes only) in the library's repository: - 728 Fix undefined behavior when getting the current working directory from std::filesystem Colvars/colvars#728 (@giacomofiorin) - 724 Fix gradients and metric functions of distanceDir Colvars/colvars#724 (@giacomofiorin) - 715 Add missing rotation in orientation component Colvars/colvars#715 (@giacomofiorin) - 713 fix: try to solve #87 for non-scala components Colvars/colvars#713 (@HanatoK) - 706 BUGFIX for Segmentation fault in colvarbias_meta::calc_energy() with useGrids off Colvars/colvars#706 (@alphataubio) - 694 More robust condition to decide when biases run on thread 0 Colvars/colvars#694 (@giacomofiorin) - 675 Fix initialization of histogram output files and move it to the right place Colvars/colvars#675 (@giacomofiorin) Authors: @alphataubio, @giacomofiorin, @HanatoK
- 759 min_image fix; Saves long runs from crashes; Colvars/colvars#759 (@PolyachenkoYA) - 728 Fix undefined behavior when getting the current working directory from std::filesystem Colvars/colvars#728 (@giacomofiorin) - 724 Fix gradients and metric functions of distanceDir Colvars/colvars#724 (@giacomofiorin) - 715 Add missing rotation in orientation component Colvars/colvars#715 (@giacomofiorin) - 713 fix: try to solve lammps#87 for non-scala components Colvars/colvars#713 (@HanatoK) - 706 BUGFIX for Segmentation fault in colvarbias_meta::calc_energy() with useGrids off Colvars/colvars#706 (@alphataubio) - 701 Do not try accessing LAMMPS proxy object before allocating it Colvars/colvars#701 (@giacomofiorin) Authors: @alphataubio, @giacomofiorin, @HanatoK, @PolyachenkoYA
Adds two functions
colvarproxy_io::get_current_work_dir()
andcolvarproxy_io::join_paths()
to replace the code currently used incolvarbias_meta.cpp
. It's possible that these may be removed again sometime in the future.Fixes #726