Skip to content

Commit c6353ef

Browse files
Fix
1 parent e3dc6ca commit c6353ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/module_cell/k_vector_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ void kvec_ibz_kpoint(K_Vectors& kv,
572572
// the new set kvec_d : ir_kpt
573573
int nkstot_ibz = 0;
574574

575-
assert(nkstot > 0);
575+
assert(kv.get_nkstot() > 0);
576576
std::vector<ModuleBase::Vector3<double>> kvec_d_ibz(kv.get_nkstot());
577577
std::vector<double> wk_ibz(kv.get_nkstot()); // ibz kpoint wk ,weight of k points
578578
std::vector<int> ibz2bz(kv.get_nkstot());

0 commit comments

Comments
 (0)