Skip to content

Commit c998a9b

Browse files
committed
correct energy selection
1 parent a1b72e8 commit c998a9b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

0 Bytes
Binary file not shown.

tools/Miscellaneous/for_coding/for_perioidc_table/nep_data_toolkit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,8 @@ static void get_valid_structures(
813813
break;
814814
}
815815
}
816-
if (structures[nc].energy_weight > 0.5f && energy_threshold > 0) {
817-
if (structures[nc].energy > energy_threshold) {
816+
if (structures[nc].energy_weight > 0.5f && energy_threshold >= 0) {
817+
if (structures[nc].energy / structures[nc].num_atom > energy_threshold) {
818818
is_valid = false;
819819
}
820820
}

0 commit comments

Comments
 (0)