We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9431137 commit 4d3f53dCopy full SHA for 4d3f53d
source/source_cell/parallel_kpoints.cpp
@@ -123,8 +123,7 @@ void Parallel_Kpoints::gatherkvec(const std::vector<ModuleBase::Vector3<double>>
123
vec_global[i + startk_pool[this->my_pool]] = vec_local[i];
124
}
125
126
-
127
- Parallel_Reduce::reduce_all(&vec_global[0], 3 * this->nkstot_np);
+ Parallel_Reduce::reduce_all(reinterpret_cast<double*>(vec_global.data()), 3 * this->nkstot_np);
128
return;
129
130
#endif
0 commit comments