Skip to content

Commit

Permalink
assign positions of Wannier centers to the positions of real atoms in…
Browse files Browse the repository at this point in the history
… end_of_step instead of post_integrate
  • Loading branch information
Yi-FanLi committed Aug 28, 2024
1 parent 24e1167 commit b9d8499
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions source/lmp/fix_dplr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ int FixDPLR::setmask() {
// THERMO_ENERGY removed in lammps/lammps#2560
mask |= THERMO_ENERGY;
#endif
mask |= POST_INTEGRATE;
mask |= END_OF_STEP;

Check warning on line 229 in source/lmp/fix_dplr.cpp

View check run for this annotation

Codecov / codecov/patch

source/lmp/fix_dplr.cpp#L229

Added line #L229 was not covered by tests
mask |= PRE_FORCE;
mask |= POST_FORCE;
mask |= MIN_PRE_EXCHANGE;
Expand Down Expand Up @@ -399,7 +399,7 @@ void FixDPLR::get_valid_pairs(vector<pair<int, int> > &pairs) {

/* ---------------------------------------------------------------------- */

void FixDPLR::post_integrate() {
void FixDPLR::end_of_step() {

Check warning on line 402 in source/lmp/fix_dplr.cpp

View check run for this annotation

Codecov / codecov/patch

source/lmp/fix_dplr.cpp#L402

Added line #L402 was not covered by tests
double **x = atom->x;
double **v = atom->v;
int *type = atom->type;
Expand Down
2 changes: 1 addition & 1 deletion source/lmp/fix_dplr.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class FixDPLR : public Fix {
void setup(int) override;
void setup_pre_force(int) override;
void min_setup(int) override;
void post_integrate() override;
void end_of_step() override;
void pre_force(int) override;
void post_force(int) override;
void min_pre_exchange() override;
Expand Down

0 comments on commit b9d8499

Please sign in to comment.