Skip to content

Commit

Permalink
Run pre-commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Nov 16, 2023
1 parent 8ec87ec commit 0cb657c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion hoomd/md/EvaluatorExternalElectricField.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ class EvaluatorExternalElectricField
\param energy value of the energy
\param virial array of six scalars for the upper triangular virial tensor
*/
DEVICE void evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
DEVICE void
evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
{
F = m_qi * m_E;
energy = -m_qi * dot(m_E, m_pos);
Expand Down
3 changes: 2 additions & 1 deletion hoomd/md/EvaluatorExternalMagneticField.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,8 @@ class EvaluatorExternalMagneticField
\param energy value of the energy
\param virial array of six scalars for the upper triangular virial tensor
*/
DEVICE void evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
DEVICE void
evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
{
vec3<Scalar> dir = rotate(m_q, m_mu);

Expand Down
3 changes: 2 additions & 1 deletion hoomd/md/EvaluatorExternalPeriodic.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,8 @@ class EvaluatorExternalPeriodic
\param energy value of the energy
\param virial array of six scalars for the upper triangular virial tensor
*/
DEVICE void evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
DEVICE void
evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
{
Scalar3 a2 = make_scalar3(0, 0, 0);
Scalar3 a3 = make_scalar3(0, 0, 0);
Expand Down
3 changes: 2 additions & 1 deletion hoomd/md/EvaluatorWalls.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ template<class evaluator> class EvaluatorWalls
}

//! Generates force and energy from standard evaluators using wall geometry functions
DEVICE void evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
DEVICE void
evalForceTorqueEnergyAndVirial(Scalar3& F, Scalar3& T, Scalar& energy, Scalar* virial)
{
F.x = Scalar(0.0);
F.y = Scalar(0.0);
Expand Down

0 comments on commit 0cb657c

Please sign in to comment.