ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
lat_change_method.h
Go to the documentation of this file.
1#ifndef LAT_CHANGE_METHOD_H
2#define LAT_CHANGE_METHOD_H
3
5#include "lattice_change_cg.h"
6#include "relax_criteria.h"
7
8#include <fstream>
9#include <vector>
10
12{
13 public:
15
17
18 void allocate(void);
19
21 const int &istep,
22 const int &stress_step,
23 const ModuleBase::matrix &stress,
24 const double &etot,
25 UnitCell &ucell,
26 std::ofstream &ofs,
27 const Relax_Criteria &criteria);
28
29 bool get_converged(void) const { return converged_; }
30
31 double get_ediff(void) const { return etot_info_[0] - etot_info_[1]; }
32
33 double get_largest_grad(void) const { return Lattice_Change_Basic::largest_grad; }
34
35 private:
37 bool converged_ = false;
38 std::vector<double> etot_info_{0.0, 0.0}; // [etot, etot_p]
39};
40#endif
Definition lattice_change_cg.h:13
bool get_converged(void) const
Definition lat_change_method.h:29
bool converged_
Definition lat_change_method.h:37
void allocate(void)
Definition lat_change_method.cpp:8
~Lattice_Change_Methods()
Definition lat_change_method.cpp:6
Lattice_Change_CG lccg
Definition lat_change_method.h:36
double get_largest_grad(void) const
Definition lat_change_method.h:33
double get_ediff(void) const
Definition lat_change_method.h:31
std::vector< double > etot_info_
Definition lat_change_method.h:38
Lattice_Change_Methods()
Definition lat_change_method.cpp:5
void cal_lattice_change(const int &istep, const int &stress_step, const ModuleBase::matrix &stress, const double &etot, UnitCell &ucell, std::ofstream &ofs, const Relax_Criteria &criteria)
Definition lat_change_method.cpp:16
Definition matrix.h:15
Provide the basic information about unitcell.
Definition unitcell.h:16
INPUT-derived settings that the relaxation algorithms need.
Definition relax_criteria.h:19