You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
abacus_fixer
committed
refactor(restart): replace std::runtime_error with WARNING_QUIT
Replace standard exception handling with project-specific error handling
in restart.cpp to comply with cpp-code-style skill guidelines.
Changes:
- Replace 4 instances of 'throw std::runtime_error' with ModuleBase::WARNING_QUIT
in functions: write_file2() and read_file2()
- Remove unnecessary #include <stdexcept>
- Add #include "source_base/tool_quit.h"
This follows the ABACUS code style rule that requires using
ModuleBase::WARNING/WARNING_QUIT instead of standard exceptions.
0 commit comments