Skip to content

Commit

Permalink
Merge pull request #1758 from glotzerlab/dipole_fix
Browse files Browse the repository at this point in the history
fix condition when dipole-dipole interactions are calculated
  • Loading branch information
joaander authored Apr 8, 2024
2 parents 7bb1588 + 32e5af4 commit abfaac9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hoomd/md/EvaluatorPairDipole.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ class EvaluatorPairDipole

bool dipole_i_interactions = (mu_i != vec3<Scalar>(0, 0, 0));
bool dipole_j_interactions = (mu_j != vec3<Scalar>(0, 0, 0));
bool dipole_interactions = dipole_j_interactions && dipole_j_interactions;
bool dipole_interactions = dipole_i_interactions && dipole_j_interactions;
// dipole-dipole
if (dipole_interactions)
{
Expand Down

0 comments on commit abfaac9

Please sign in to comment.