Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iProzd committed Nov 7, 2024
1 parent 41ad708 commit dc0f496
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/api_cc/src/DeepSpinTF.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#include "AtomMap.h"
#include "common.h"
#include "device.h"
#include "neigh_list.h"

using namespace tensorflow;
using namespace deepmd;
Expand Down Expand Up @@ -742,6 +743,7 @@ void DeepSpinTF::compute(ENERGYVTYPE& dener,
ntypes, ntypes_spin);
InputNlist extend_lmp_list(extend_inum, &extend_ilist[0], &extend_numneigh[0],
&extend_firstneigh[0]);
extend_lmp_list.set_mask(NEIGHMASK);
std::vector<VALUETYPE> fparam;
std::vector<VALUETYPE> aparam_;
validate_fparam_aparam(nframes, (aparam_nall ? nall : nloc), fparam_,
Expand Down
1 change: 1 addition & 0 deletions source/lmp/pair_deepmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ void PairDeepMD::compute(int eflag, int vflag) {
commdata_->nswap, commdata_->sendnum, commdata_->recvnum,
commdata_->firstrecv, commdata_->sendlist, commdata_->sendproc,
commdata_->recvproc, &world);
lmp_list.set_mask(NEIGHMASK);
deepmd_compat::InputNlist extend_lmp_list;
if (single_model || multi_models_no_mod_devi) {
// cvflag_atom is the right flag for the cvatom matrix
Expand Down
1 change: 1 addition & 0 deletions source/lmp/pair_deepspin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ void PairDeepSpin::compute(int eflag, int vflag) {
commdata_->nswap, commdata_->sendnum, commdata_->recvnum,
commdata_->firstrecv, commdata_->sendlist, commdata_->sendproc,
commdata_->recvproc, &world);
lmp_list.set_mask(NEIGHMASK);
if (single_model || multi_models_no_mod_devi) {
// cvflag_atom is the right flag for the cvatom matrix
if (!(eflag_atom || cvflag_atom)) {
Expand Down

0 comments on commit dc0f496

Please sign in to comment.