Skip to content

Commit

Permalink
rm norm squared for dot product in lmp
Browse files Browse the repository at this point in the history
  • Loading branch information
YuuuXie committed May 16, 2023
1 parent 66b4214 commit 7c347d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lammps_plugins/compute_flare_std_atom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ void ComputeFlareStdAtom::compute_peratom() {
double B2_norm = pow(B2_norm_squared, 0.5);
Q_desc = beta_matrices[itype - 1].transpose() * B2_vals / B2_norm;
} else {
K_self = B2_norm_squared / size_norm; // only power 1 is supported
K_self = B2_norm_squared; // only power 1 is supported
Q_desc = beta_matrices[itype - 1].transpose() * B2_vals;
}
variance = K_self - Q_desc.dot(Q_desc);
Expand Down

0 comments on commit 7c347d9

Please sign in to comment.