ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
hamilt::cal_force_nl_op< FPTYPE, Device > Struct Template Reference

#include <force_op.h>

Collaboration diagram for hamilt::cal_force_nl_op< FPTYPE, Device >:

Public Member Functions

void operator() (const base_device::DEVICE_CPU *ctx, const bool &nondiagonal, const int &nbands_occ, const int &ntype, const int &spin, const int &deeq_2, const int &deeq_3, const int &deeq_4, const int &forcenl_nc, const int &nbands, const int &nkb, const int *atom_nh, const int *atom_na, const FPTYPE &tpiba, const FPTYPE *d_wg, const bool &occ, const FPTYPE *d_ekb, const FPTYPE *qq_nt, const FPTYPE *deeq, const std::complex< FPTYPE > *becp, const std::complex< FPTYPE > *dbecp, FPTYPE *force)
 Calculate the final forces for multi-device.
void operator() (const base_device::DEVICE_CPU *ctx, const int &nbands_occ, const int &ntype, const int &deeq_2, const int &deeq_3, const int &deeq_4, const int &forcenl_nc, const int &nbands, const int &nkb, const int *atom_nh, const int *atom_na, const FPTYPE &tpiba, const FPTYPE *d_wg, const bool &occ, const FPTYPE *d_ekb, const FPTYPE *qq_nt, const std::complex< FPTYPE > *deeq_nc, const std::complex< FPTYPE > *becp, const std::complex< FPTYPE > *dbecp, FPTYPE *force)
void operator() (const base_device::DEVICE_CPU *ctx, const int &nbands_occ, const int &wg_nc, const int &ntype, const int &forcenl_nc, const int &nbands, const int &ik, const int &nkb, const int &npol, const int *atom_nh, const int *atom_na, const FPTYPE &tpiba, const FPTYPE *d_wg, const std::complex< FPTYPE > *pot_onsite, const int *l_channel, const std::complex< FPTYPE > *becp, const std::complex< FPTYPE > *dbecp, FPTYPE *force)
 kernel for DFT+U
void operator() (const base_device::DEVICE_CPU *ctx, const int &nbands_occ, const int &wg_nc, const int &ntype, const int &forcenl_nc, const int &nbands, const int &ik, const int &nkb, const int &npol, const int *atom_nh, const int *atom_na, const FPTYPE &tpiba, const FPTYPE *d_wg, const FPTYPE *lambda, const int *isk, const std::complex< FPTYPE > *becp, const std::complex< FPTYPE > *dbecp, FPTYPE *force)
 kernel for DeltaSpin

Member Function Documentation

◆ operator()() [1/4]

template<typename FPTYPE, typename Device>
void hamilt::cal_force_nl_op< FPTYPE, Device >::operator() ( const base_device::DEVICE_CPU * ctx,
const bool & nondiagonal,
const int & nbands_occ,
const int & ntype,
const int & spin,
const int & deeq_2,
const int & deeq_3,
const int & deeq_4,
const int & forcenl_nc,
const int & nbands,
const int & nkb,
const int * atom_nh,
const int * atom_na,
const FPTYPE & tpiba,
const FPTYPE * d_wg,
const bool & occ,
const FPTYPE * d_ekb,
const FPTYPE * qq_nt,
const FPTYPE * deeq,
const std::complex< FPTYPE > * becp,
const std::complex< FPTYPE > * dbecp,
FPTYPE * force )

Calculate the final forces for multi-device.

Input Parameters

Parameters
ctx- which device this function runs on
nondiagonal- control flag
nbands_occ- number of occupied bands
ntype- total atomic type
spin- current spin
deeq_2- the second dimension of deeq
deeq_3- the third dimension of deeq
deeq_4- the forth dimension of deeq
forcenl_nc- the second dimension of matrix forcenl
nbands- NBANDS
nkb- number of k point
atom_nh- ucell.atoms[ii].ncpp.nh
atom_na- ucell.atoms[ii].na
tpiba- ucell.tpiba
d_wg- input parameter wg
occ- if use the occupation of the bands
d_ekb- input parameter ekb
qq_nt- ppcell.qq_nt
deeq- ppcell.deeq
becp- intermediate matrix with PARAM.inp.nbands * nkb
dbecp- intermediate matrix with 3 * PARAM.inp.nbands * nkb

Output Parameters

Parameters
force- output forces

◆ operator()() [2/4]

template<typename FPTYPE, typename Device>
void hamilt::cal_force_nl_op< FPTYPE, Device >::operator() ( const base_device::DEVICE_CPU * ctx,
const int & nbands_occ,
const int & ntype,
const int & deeq_2,
const int & deeq_3,
const int & deeq_4,
const int & forcenl_nc,
const int & nbands,
const int & nkb,
const int * atom_nh,
const int * atom_na,
const FPTYPE & tpiba,
const FPTYPE * d_wg,
const bool & occ,
const FPTYPE * d_ekb,
const FPTYPE * qq_nt,
const std::complex< FPTYPE > * deeq_nc,
const std::complex< FPTYPE > * becp,
const std::complex< FPTYPE > * dbecp,
FPTYPE * force )

◆ operator()() [3/4]

template<typename FPTYPE, typename Device>
void hamilt::cal_force_nl_op< FPTYPE, Device >::operator() ( const base_device::DEVICE_CPU * ctx,
const int & nbands_occ,
const int & wg_nc,
const int & ntype,
const int & forcenl_nc,
const int & nbands,
const int & ik,
const int & nkb,
const int & npol,
const int * atom_nh,
const int * atom_na,
const FPTYPE & tpiba,
const FPTYPE * d_wg,
const FPTYPE * lambda,
const int * isk,
const std::complex< FPTYPE > * becp,
const std::complex< FPTYPE > * dbecp,
FPTYPE * force )

kernel for DeltaSpin

◆ operator()() [4/4]

template<typename FPTYPE, typename Device>
void hamilt::cal_force_nl_op< FPTYPE, Device >::operator() ( const base_device::DEVICE_CPU * ctx,
const int & nbands_occ,
const int & wg_nc,
const int & ntype,
const int & forcenl_nc,
const int & nbands,
const int & ik,
const int & nkb,
const int & npol,
const int * atom_nh,
const int * atom_na,
const FPTYPE & tpiba,
const FPTYPE * d_wg,
const std::complex< FPTYPE > * pot_onsite,
const int * l_channel,
const std::complex< FPTYPE > * becp,
const std::complex< FPTYPE > * dbecp,
FPTYPE * force )

kernel for DFT+U


The documentation for this struct was generated from the following file: