Skip to content

Commit

Permalink
Update cal_gvx.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ErjieWu authored Jan 4, 2025
1 parent 59ebcb1 commit 0aac194
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions source/module_hamilt_lcao/module_deepks/cal_gvx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ void LCAO_Deepks::check_gvx(const int nat, const torch::Tensor& gvx)
std::ofstream ofs_x;
std::ofstream ofs_y;
std::ofstream ofs_z;

if (GlobalV::MY_RANK != 0)
{
return;
}

ofs_x << std::setprecision(12);
ofs_y << std::setprecision(12);
Expand Down

0 comments on commit 0aac194

Please sign in to comment.