ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
relax_stru_io.h
Go to the documentation of this file.
1#ifndef RELAX_STRU_IO_H
2#define RELAX_STRU_IO_H
3
7
8#include <string>
9
17namespace relax_stru_io
18{
37std::string build_stru_header(
38 const int istep,
39 const double etot,
40 const ModuleBase::matrix &stress,
41 const Input_para &inp,
42 const bool is_final,
43 const bool geometry_evaluated);
44
51bool need_orbital(const Input_para &inp);
52
71void write_stru(
72 UnitCell &ucell,
73 const Input_para &inp,
74 const std::string &filename,
75 const std::string &header,
76 const ModuleBase::matrix &force,
77 const bool need_orb,
78 const bool deepks_setorb,
79 const int my_rank,
80 const bool has_force,
81 const bool append);
82} // namespace relax_stru_io
83
84#endif
Helpers for writing structure (STRU/CIF) files during relaxation.
Definition relax_stru_io.cpp:11
void write_stru(UnitCell &ucell, const Input_para &inp, const std::string &filename, const std::string &header, const ModuleBase::matrix &force, const bool need_orb, const bool deepks_setorb, const int my_rank, const bool has_force, const bool append)
Write one structure file in STRU (out_stru == 1) or CIF (out_stru == 2) format.
Definition relax_stru_io.cpp:107
bool need_orbital(const Input_para &inp)
Whether orbital output is required in the structure file.
Definition relax_stru_io.cpp:98
std::string build_stru_header(const int istep, const double etot, const ModuleBase::matrix &stress, const Input_para &inp, const bool is_final, const bool geometry_evaluated)
Build the header comment for a structure file.
Definition relax_stru_io.cpp:13