virtual void cal_force(BaseCell &cell, ModuleBase::matrix &force)=0
calcualte forces for the atoms in the given cell
virtual void others(BaseCell &, const int)
Definition esolver.h:35
virtual ~ESolver()
Definition esolver.h:17
ESolver()
Definition esolver.h:15
virtual double cal_energy()=0
calculate total energy of a given system
virtual void cal_stress(BaseCell &cell, ModuleBase::matrix &stress)=0
calcualte stress of given cell
virtual void runner(BaseCell &cell, const int istep)=0
run energy solver
virtual void before_all_runners(BaseCell &cell, const Input_para &inp)=0
initialize the energy solver by using input parameters and cell modules
bool conv_esolver
Definition esolver.h:46
const Input_para * inp_
Bound in before_all_runners; members use inp_->xxx instead of PARAM.inp.xxx.
Definition esolver.h:52
std::string classname
Definition esolver.h:48
virtual void after_all_runners(BaseCell &cell)=0
perform post processing calculations
The First-Principles (FP) Energy Solver Class.
Definition opt_test_tools.cpp:93