ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
relax_nsync.h
Go to the documentation of this file.
1#ifndef RELAX_OLD_H
2#define RELAX_OLD_H
3
4#include "ions_move_methods.h"
7
9{
10 public:
11 void init_relax(const int& natom);
12 bool relax_step(const int& istep,
13 const double& energy,
14 UnitCell& ucell,
16 ModuleBase::matrix stress,
17 int& force_step,
18 int& stress_step);
19
20 private:
23
24 // seperate force_stress function first
25 bool if_do_relax(const UnitCell& ucell);
26 bool if_do_cellrelax(const UnitCell& ucell);
27 bool do_relax(const int& istep,
28 const ModuleBase::matrix& ionic_force,
29 const double& total_energy,
30 UnitCell& ucell,
31 int& jstep);
32 bool do_cellrelax(const int& istep,
33 const int& stress_step,
34 const ModuleBase::matrix& stress,
35 const double& total_energy,
36 UnitCell& ucell);
37};
38
39#endif
Definition ions_move_methods.h:12
Definition lattice_change_methods.h:8
Definition matrix.h:18
Definition relax_nsync.h:9
bool do_cellrelax(const int &istep, const int &stress_step, const ModuleBase::matrix &stress, const double &total_energy, UnitCell &ucell)
Definition relax_nsync.cpp:139
Ions_Move_Methods IMM
Definition relax_nsync.h:21
Lattice_Change_Methods LCM
Definition relax_nsync.h:22
bool do_relax(const int &istep, const ModuleBase::matrix &ionic_force, const double &total_energy, UnitCell &ucell, int &jstep)
Definition relax_nsync.cpp:128
bool if_do_relax(const UnitCell &ucell)
Definition relax_nsync.cpp:82
void init_relax(const int &natom)
Definition relax_nsync.cpp:7
bool if_do_cellrelax(const UnitCell &ucell)
Definition relax_nsync.cpp:103
bool relax_step(const int &istep, const double &energy, UnitCell &ucell, ModuleBase::matrix force, ModuleBase::matrix stress, int &force_step, int &stress_step)
Definition relax_nsync.cpp:25
Definition unitcell.h:15