Skip to content

Commit

Permalink
Merge pull request #599 from amcadmus/fix-598
Browse files Browse the repository at this point in the history
fix issue #598
  • Loading branch information
amcadmus committed May 9, 2021
2 parents 2dfb64a + 6a1d643 commit bcdd9f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,10 @@ void PairDeepMD::compute(int eflag, int vflag)
deep_pot_model_devi.compute_avg (tmp_avg_f_, all_force_);
deep_pot_model_devi.compute_std_f (std_f_, tmp_avg_f_, all_force_);
std_f.resize(std_f_.size());
for (int dd = 0; dd < std_f_.size(); ++dd) std_f[dd] = std_f_[dd];
if (out_rel == 1){
deep_pot_model_devi.compute_relative_std_f (std_f_, tmp_avg_f_, eps);
}
for (int dd = 0; dd < std_f_.size(); ++dd) std_f[dd] = std_f_[dd];
#endif
double min = numeric_limits<double>::max(), max = 0, avg = 0;
ana_st(max, min, avg, std_f, nlocal);
Expand Down

0 comments on commit bcdd9f6

Please sign in to comment.