ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
deepks_force.h
Go to the documentation of this file.
1#ifndef DEEPKS_FORCE_H
2#define DEEPKS_FORCE_H
3
4#ifdef __MLALGO
5
6#include "deepks_param.h"
10#include "source_base/timer.h"
15
16namespace DeePKS_domain
17{
18//------------------------
19// deepks_force.cpp
20//------------------------
21
22// This file contains subroutines for calculating F_delta,
23// which is defind as sum_mu,nu rho_mu,nu d/dX (<chi_mu|alpha>V(D)<alpha|chi_nu>)
24
25// There are 1 subroutine in this file:
26// 1. cal_f_delta, which is used for F_delta calculation
27
28template <typename TK>
29void cal_f_delta(const UnitCell& ucell,
30 const LCAO_Orbitals& orb,
31 const Grid_Driver& GridD,
32 const Parallel_Orbitals& pv,
33 const int nks,
34 const DeePKS_Param& deepks_param,
35 const std::vector<ModuleBase::Vector3<double>>& kvec_d,
36 std::vector<hamilt::HContainer<double>*> phialpha,
37 ModuleBase::matrix& f_delta,
38 const bool isstress,
39 ModuleBase::matrix& svnl_dalpha,
40 const hamilt::HContainer<double>* dmr,
41 double** gedm,
42 const hamilt::HContainer<double>* dmr_mag = nullptr,
43 double** gedm_mag = nullptr);
44} // namespace DeePKS_domain
45
46#endif
47#endif
Definition deepks_basic.h:12
void cal_f_delta(const UnitCell &ucell, const LCAO_Orbitals &orb, const Grid_Driver &GridD, const Parallel_Orbitals &pv, const int nks, const DeePKS_Param &deepks_param, const std::vector< ModuleBase::Vector3< double > > &kvec_d, std::vector< hamilt::HContainer< double > * > phialpha, ModuleBase::matrix &f_delta, const bool isstress, ModuleBase::matrix &svnl_dalpha, const hamilt::HContainer< double > *dmr, double **gedm, const hamilt::HContainer< double > *dmr_mag=nullptr, double **gedm_mag=nullptr)
Definition deepks_force.cpp:14
Grid_Driver class for neighbor search interface.