|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
Helpers to read frames from fixed-name cumulative STRU files. More...
#include <string>Go to the source code of this file.
Namespaces | |
| namespace | stru_frame_io |
Functions | |
| bool | stru_frame_io::extract_last_frame (const std::string &cumulative_path, const std::string &frame_path) |
| Extract the last MD frame from a fixed-name cumulative STRU file. | |
| bool | stru_frame_io::extract_frame_by_step (const std::string &cumulative_path, int step, const std::string &frame_path) |
| Extract the MD frame whose marker matches a specific one-based step. | |
| int | stru_frame_io::last_frame_step (const std::string &cumulative_path) |
| Read the one-based step number of the last frame of a cumulative STRU. | |
Helpers to read frames from fixed-name cumulative STRU files.
In out_app_flag == 1 mode run_md appends one structure frame per output step to a single "STRU" file, each frame introduced by a one-based "# MD step N" comment line. Restart readers such as MDCellReader::read_stru expect a single-frame STRU file, so the frames written this way must be split before they can be consumed. This header owns that frame-splitting knowledge so callers outside source_cell do not parse STRU text themselves.