Skip to content

Commit

Permalink
fix issue deepmodeling#598
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang authored and njzjz committed May 9, 2021
1 parent d368855 commit 69df1d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/lmp/pair_nnp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,10 +481,10 @@ void PairNNP::compute(int eflag, int vflag)
nnp_inter_model_devi.compute_avg (tmp_avg_f_, all_force_);
nnp_inter_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){
nnp_inter_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 69df1d2

Please sign in to comment.