ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
LR::PotGradXCLR::Scratch Struct Reference
Collaboration diagram for LR::PotGradXCLR::Scratch:

Public Member Functions

void alloc (const int nrxx, const bool two_channel, const bool gga)

Public Attributes

std::vector< ModuleBase::Vector3< double > > drho1 [2]
 $\nabla\rho^1_\sigma$
std::vector< ModuleBase::Vector3< double > > gdot
 integrand of the divergence
std::vector< double > vtmp
 local part $A$
std::vector< double > div
 $-\nabla\cdot\boldsymbol{E}$

Detailed Description

Scratch, shared by every PotGradXCLR and grown on demand. These used to be allocated (and value-initialized) on every call. Safe to share because cal_v_eff is only ever entered from a single thread (all the OpenMP is inside).

Member Function Documentation

◆ alloc()

void LR::PotGradXCLR::Scratch::alloc ( const int nrxx,
const bool two_channel,
const bool gga )
Here is the caller graph for this function:

Member Data Documentation

◆ div

std::vector<double> LR::PotGradXCLR::Scratch::div

$-\nabla\cdot\boldsymbol{E}$

◆ drho1

std::vector<ModuleBase::Vector3<double> > LR::PotGradXCLR::Scratch::drho1[2]

$\nabla\rho^1_\sigma$

◆ gdot

std::vector<ModuleBase::Vector3<double> > LR::PotGradXCLR::Scratch::gdot

integrand of the divergence

◆ vtmp

std::vector<double> LR::PotGradXCLR::Scratch::vtmp

local part $A$


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