Skip to content

Commit

Permalink
lmp: fix evflag initialization (#3133)
Browse files Browse the repository at this point in the history
  • Loading branch information
njzjz authored Jan 12, 2024
1 parent ff58456 commit 04f07ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,9 +450,9 @@ void PairDeepMD::compute(int eflag, int vflag) {
if (numb_models == 0) {
return;
}
if (eflag || vflag) {
ev_setup(eflag, vflag);
}
// See
// https://docs.lammps.org/Developer_updating.html#use-ev-init-to-initialize-variables-derived-from-eflag-and-vflag
ev_init(eflag, vflag);
if (vflag_atom) {
error->all(FLERR,
"6-element atomic virial is not supported. Use compute "
Expand Down

0 comments on commit 04f07ef

Please sign in to comment.