Skip to content

Commit

Permalink
[api] return band gap value (#952)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaillefumier authored Jan 9, 2024
1 parent 5e9a033 commit e9cd957
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/sirius_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3057,7 +3057,8 @@ sirius_get_energy(void* const* handler__, char const* label__, double* energy__,
{"paw-one-el", [&]() { return potential.PAW_one_elec_energy(density); }},
{"paw", [&]() { return potential.PAW_total_energy(density); }},
{"fermi", [&]() { return kset.energy_fermi(); }},
{"hubbard", [&]() { return sirius::hubbard_energy(density); }}};
{"hubbard", [&]() { return sirius::hubbard_energy(density); }},
{"band-gap", [&]() { return kset.band_gap(); }}};

if (!func.count(label)) {
RTE_THROW("wrong label: " + label);
Expand Down

0 comments on commit e9cd957

Please sign in to comment.