MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / occupations_kpoints

Function occupations_kpoints

cpp_core/src/scf.cpp:2877–2897  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2875}
2876
2877OccupationResult occupations_kpoints(
2878 const std::vector<std::vector<double>>& eigenvalues_by_k,
2879 const std::vector<double>& kpoint_weights,
2880 double n_electrons,
2881 double sigma_ha,
2882 int ismear,
2883 double max_occupation_per_state,
2884 const std::array<int, 3>& kpoint_grid = {0, 0, 0},
2885 const std::vector<int>& full_to_reduced_kpoint = {}
2886) {
2887 OccupationInput occ_input;
2888 occ_input.eigenvalues_by_k = eigenvalues_by_k;
2889 occ_input.kpoint_weights = kpoint_weights;
2890 occ_input.electron_count = n_electrons;
2891 occ_input.sigma_ha = sigma_ha;
2892 occ_input.ismear = ismear;
2893 occ_input.max_occupation_per_state = max_occupation_per_state;
2894 occ_input.kpoint_grid = kpoint_grid;
2895 occ_input.full_to_reduced_kpoint = full_to_reduced_kpoint;
2896 return compute_occupations_kpoints(occ_input);
2897}
2898
2899double density_weighted_average_unpolarized(
2900 const std::vector<double>& rho_r,

Callers 1

run_scf_kpoints_hartreeFunction · 0.85

Calls 1

Tested by

no test coverage detected