Skip to content

Commit 4d3f53d

Browse files
committed
fix bug
1 parent 9431137 commit 4d3f53d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

source/source_cell/parallel_kpoints.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,7 @@ void Parallel_Kpoints::gatherkvec(const std::vector<ModuleBase::Vector3<double>>
123123
vec_global[i + startk_pool[this->my_pool]] = vec_local[i];
124124
}
125125
}
126-
127-
Parallel_Reduce::reduce_all(&vec_global[0], 3 * this->nkstot_np);
126+
Parallel_Reduce::reduce_all(reinterpret_cast<double*>(vec_global.data()), 3 * this->nkstot_np);
128127
return;
129128
}
130129
#endif

0 commit comments

Comments
 (0)