#include "source_base/matrix.h"
#include "source_base/vector3.h"
#include <complex>
#include <vector>
Go to the source code of this file.
|
| void | gradcorr_prepare_rho (const GradCorrParams ¶ms, ModuleBase::matrix &v, GradCorrBuffers &buf) |
| | First stage: build the real- and reciprocal-space density buffers and their gradients for every spin channel.
|
| void | gradcorr_xc_kernel (const GradCorrParams ¶ms, double &vtxcgc, double &etxcgc, std::vector< double > &stress_gga, ModuleBase::matrix &v, GradCorrBuffers &buf) |
| | Second stage: evaluate the GGA/meta-GGA kernel on every grid point and accumulate vtxcgc, etxcgc, stress_gga and v.
|
| void | gradcorr_assemble_vxc (const GradCorrParams ¶ms, double vtxcgc, double etxcgc, double &vtxc, double &etxc, std::vector< double > &stress_gga, ModuleBase::matrix &v, GradCorrBuffers &buf) |
| | Final stage: assemble the gradient-correction contribution into vtxc/etxc/stress_gga/v and restore the nspin = 4 case.
|
◆ gradcorr_assemble_vxc()
Final stage: assemble the gradient-correction contribution into vtxc/etxc/stress_gga/v and restore the nspin = 4 case.
◆ gradcorr_prepare_rho()
First stage: build the real- and reciprocal-space density buffers and their gradients for every spin channel.
◆ gradcorr_xc_kernel()
Second stage: evaluate the GGA/meta-GGA kernel on every grid point and accumulate vtxcgc, etxcgc, stress_gga and v.