ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
dos_test_data.h
Go to the documentation of this file.
1#ifndef DOS_TEST_DATA_H
2#define DOS_TEST_DATA_H
3
4// Small synthetic test data for module_dos unit tests:
5// 4 k-points with equal weight (sum of wk = 2 for spin-unpolarized),
6// 4 bands. Energies are in eV.
7
8#include <vector>
9
11{
12const int nks = 4;
13const int nkstot = 4;
14const int nbands = 4;
15
16// k-point weights (already doubled for spin degeneracy)
17const std::vector<double> wk = {0.5, 0.5, 0.5, 0.5};
18
19// band energies in eV, row-major [nks][nbands]
20const std::vector<double> ekb_ev = {
21 -5.0, 1.0, 3.0, 6.0,
22 -4.5, 1.5, 3.5, 6.5,
23 -4.0, 2.0, 4.0, 7.0,
24 -3.5, 2.5, 4.5, 7.5,
25};
26
27// band occupation numbers (weight included), row-major [nks][nbands]
28const std::vector<double> wg = {
29 0.5, 0.0, 0.0, 0.0,
30 0.5, 0.0, 0.0, 0.0,
31 0.5, 0.0, 0.0, 0.0,
32 0.5, 0.0, 0.0, 0.0,
33};
34} // namespace dos_test_data
35
36#endif
Definition dos_test_data.h:11
const int nbands
Definition dos_test_data.h:14
const std::vector< double > wg
Definition dos_test_data.h:28
const int nks
Definition dos_test_data.h:12
const std::vector< double > wk
Definition dos_test_data.h:17
const int nkstot
Definition dos_test_data.h:13
const std::vector< double > ekb_ev
Definition dos_test_data.h:20