- Tested Functions:
- rho_gvec: reconstruction of rho-grid G vectors must coincide with the distributed gcar array filled by the real serial collect_local_pw().
- dVloc_dtau: the analytic first-order local potential is validated against a finite difference of the full displaced potential vloc(|Delta+q|) * exp(i 2pi (Delta+q).tau) for q != 0.
- build_dv + apply_dv: the stored reciprocal coefficients and the FFT convolution dpsi(G'') = sum_G' psi(G') c(G''-G') are checked against the analytic matrix elements on the k+q basis (no extra q-phase).
- build_vkb: l=0 projector against an independent hand-rolled Simpson transform; pure phase response under a tau shift.
- dVnl_dtau: the two-term NC identity is validated against a finite difference of the displaced separable operator; USPP is rejected.
- build_dv under with_u()/u_active()==false (pure-PW DFT+U safety).
◆ SetUp()
| void DFPTPertSerialTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotected |
◆ TearDown()
| void DFPTPertSerialTest::TearDown |
( |
| ) |
|
|
inlineoverrideprotected |
◆ data_
◆ k_d_
◆ latvec_
◆ pert_
◆ pw_rho_
◆ pw_wfc_
◆ q_cart_
◆ q_d_
◆ qlist_
◆ sf_
◆ tau_
◆ ucell_
The documentation for this class was generated from the following file:
- /home/runner/work/abacus-develop/abacus-develop/source/source_pw/module_dfpt/unittests/test_dfpt_pert.cpp