ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
ModuleIO::UcellIO Class Reference

A class for unit cell I/O operations. More...

#include <ucell_io.h>

Collaboration diagram for ModuleIO::UcellIO:

Static Public Member Functions

static void write_ucell (std::ofstream &ofs, const UnitCell *ucell)
 Writes the unit cell information to a file.
 
static void read_ucell (std::ifstream &ifs)
 Reads the unit cell information lines in a file.
 

Detailed Description

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.

Member Function Documentation

◆ read_ucell()

void ModuleIO::UcellIO::read_ucell ( std::ifstream &  ifs)
static

Reads the unit cell information lines in a file.

Parameters
ifsThe input file stream.

◆ write_ucell()

void ModuleIO::UcellIO::write_ucell ( std::ofstream &  ofs,
const UnitCell ucell 
)
static

Writes the unit cell information to a file.

Parameters
ofsThe output file stream.
ucellA pointer to the UnitCell object.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: