Skip to content

Commit

Permalink
fix the error in dist_unit_cvt_factor
Browse files Browse the repository at this point in the history
  • Loading branch information
Yi-FanLi authored Sep 11, 2023
1 parent 11b5afb commit e1c9173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/lmp/compute_deeptensor_atom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ ComputeDeeptensorAtom::ComputeDeeptensorAtom(LAMMPS *lmp, int narg, char **arg)

nmax = 0;

dist_unit_cvt_factor = 1.0 / force->angstrom;
dist_unit_cvt_factor = force->angstrom;
}

/* ---------------------------------------------------------------------- */
Expand Down
2 changes: 1 addition & 1 deletion source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ PairDeepMD::PairDeepMD(LAMMPS *lmp)
"\"units metal\" or \"units real\"");
}
ener_unit_cvt_factor = force->boltz / 8.617343e-5;
dist_unit_cvt_factor = 1.0 / force->angstrom;
dist_unit_cvt_factor = force->angstrom;
force_unit_cvt_factor = ener_unit_cvt_factor / dist_unit_cvt_factor;

restartinfo = 1;
Expand Down

0 comments on commit e1c9173

Please sign in to comment.