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"
9
11{
12 public:
13 void init_relax(const int& natom);
14 bool relax_step(const int& istep,
15 const double& energy,
16 UnitCell& ucell,
18 ModuleBase::matrix stress,
19 int& force_step,
20 int& stress_step);
21
22 private:
25
26 // seperate force_stress function first
27 bool if_do_relax(const UnitCell& ucell);
28 bool if_do_cellrelax(const UnitCell& ucell);
29 bool do_relax(const int& istep,
30 const ModuleBase::matrix& ionic_force,
31 const double& total_energy,
32 UnitCell& ucell,
33 int& jstep);
34 bool do_cellrelax(const int& istep,
35 const int& stress_step,
36 const ModuleBase::matrix& stress,
37 const double& total_energy,
38 UnitCell& ucell);
39};
40
41#endif
Definition ions_move_methods.h:14
Definition lattice_change_methods.h:8
Definition matrix.h:19
Definition relax_nsync.h:11
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:23
Lattice_Change_Methods LCM
Definition relax_nsync.h:24
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:16