ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
test_relax_driver.cpp File Reference
#include "for_test.h"
#include "source_cell/cell_tools.h"
#include "source_cell/print_cell.h"
#include "source_cell/update_cell.h"
#include "source_esolver/esolver.h"
#include "source_relax/relax_driver.h"
#include "source_relax/relax_stru_io.h"
#include "source_relax/socket_driver.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include <fstream>
#include <iterator>
#include <string>
#include <unistd.h>
Include dependency graph for test_relax_driver.cpp:

Namespaces

namespace  unitcell
 Free functions for extracting atom/orbital info from Atom array.
namespace  ModuleIO
 Internal helpers shared by the R-space sparse text writers. Declared here (instead of duplicated in each anonymous namespace) so the header layout, R records and file-append rules cannot diverge between hs_sparse_io.cpp, dhs_sparse_writer.cpp, pos_op_csr.cpp, hsr_writer.cpp and write_dmr.cpp.
namespace  relax_stru_io
 Helpers for writing structure (STRU/CIF) files during relaxation.

Functions

bool unitcell::if_atoms_can_move (const Atom *atoms, const int ntype)
 Judge if any atom can move (any mbl component is non-zero).
bool unitcell::if_cell_can_change (const std::vector< int > &lat_axis_free)
 Judge if any lattice vector can change.
void unitcell::update_pos_tau (const Lattice &lat, const double *pos, const int ntype, const int nat, Atom *atoms)
 Update the position and tau of the atoms.
void unitcell::update_pos_taud (const Lattice &lat, const double *posd_in, const int ntype, const int nat, Atom *atoms)
 Update the position and taud of the atoms.
void unitcell::setup_cell_after_vc (UnitCell &ucell, std::ofstream &log, const int nspin)
 Setup cell after vc-relaxation.
void unitcell::remake_cell (Lattice &lat)
 Adjust lattice vectors for constrained vc-relaxation.
void unitcell::print_tau (Atom *atoms, const std::string &Coordinate, const int ntype, const double lat0, std::ofstream &ofs)
 Print atom positions (tau).
void ModuleIO::print_screen (const int &stress_step, const int &force_step, const int &istep)
void ModuleIO::output_after_relax (bool conv_ion, bool conv_esolver, std::ofstream &ofs_running)
 output after relaxation
std::string relax_stru_io::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.
bool relax_stru_io::need_orbital (const Input_para &inp)
 Whether orbital output is required in the structure file.
void relax_stru_io::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.

Variables

bool unitcell::allow_cell_change = false