|
ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
|
A class for unit cell I/O operations. More...
#include <ucell_io.h>
Static Public Member Functions | |
| static void | write_ucell (std::ofstream &ofs, const UnitCell *ucell) |
| Writes the unit cell information to a file. | |
| static bool | read_ucell (std::ifstream &ifs) |
| Skips the UnitCell block that follows the DMK header. | |
A class for unit cell I/O operations.
This class provides methods to write and read unit cell information to/from files, particularly for DMK files.
|
static |
Skips the UnitCell block that follows the DMK header.
The function consumes the latName, lat0, three lattice vectors, atom labels, per-type atom counts, the "Direct" marker, and every coordinate line in order. On success the stream is positioned at the first line of the trailing matrix body.
| ifs | The input file stream positioned at the start of the block. |
|
static |
Writes the unit cell information to a file.
| ofs | The output file stream. |
| ucell | A pointer to the UnitCell object. |