ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
stru_frame_io.h
Go to the documentation of this file.
1#ifndef STRU_FRAME_IO_H
2#define STRU_FRAME_IO_H
3
4#include <string>
5
17namespace stru_frame_io
18{
28bool extract_last_frame(const std::string& cumulative_path, const std::string& frame_path);
29
42bool extract_frame_by_step(const std::string& cumulative_path, int step, const std::string& frame_path);
43
48int last_frame_step(const std::string& cumulative_path);
49} // namespace stru_frame_io
50
51#endif // STRU_FRAME_IO_H
Definition stru_frame_io.cpp:34
bool 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.
Definition stru_frame_io.cpp:82
int last_frame_step(const std::string &cumulative_path)
Read the one-based step number of the last frame of a cumulative STRU.
Definition stru_frame_io.cpp:131
bool 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.
Definition stru_frame_io.cpp:35