Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 24, 2024
1 parent 0acc344 commit a1d7435
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
12 changes: 6 additions & 6 deletions hoomd/md/TwoStepBD.cc
Original file line number Diff line number Diff line change
Expand Up @@ -182,20 +182,20 @@ void TwoStepBD::integrateStepOne(uint64_t timestep)
bf_torque.z = NormalDistribution<Scalar>(sigma_r.z)(rng);

if (x_zero)
{
{
bf_torque.x = 0;
t.x = 0;
}
}
if (y_zero)
{
{
bf_torque.y = 0;
t.y = 0;
}
}
if (z_zero)
{
{
bf_torque.z = 0;
t.z = 0;
}
}

// use the damping by gamma_r and rotate back to lab frame
// Notes For the Future: take special care when have anisotropic gamma_r
Expand Down
12 changes: 6 additions & 6 deletions hoomd/md/TwoStepBDGPU.cu
Original file line number Diff line number Diff line change
Expand Up @@ -233,20 +233,20 @@ __global__ void gpu_brownian_step_one_kernel(Scalar4* d_pos,
bf_torque.z = NormalDistribution<Scalar>(sigma_r.z)(rng);

if (x_zero)
{
{
bf_torque.x = 0;
t.x = 0;
}
}
if (y_zero)
{
{
bf_torque.y = 0;
t.y = 0;
}
}
if (z_zero)
{
{
bf_torque.z = 0;
t.z = 0;
}
}

// use the damping by gamma_r and rotate back to lab frame
// For Future Updates: take special care when have anisotropic gamma_r
Expand Down
12 changes: 6 additions & 6 deletions hoomd/md/TwoStepRATTLEBD.h
Original file line number Diff line number Diff line change
Expand Up @@ -331,20 +331,20 @@ template<class Manifold> void TwoStepRATTLEBD<Manifold>::integrateStepOne(uint64
bf_torque.z = NormalDistribution<Scalar>(sigma_r.z)(rng);

if (x_zero)
{
{
bf_torque.x = 0;
t.x = 0;
}
}
if (y_zero)
{
{
bf_torque.y = 0;
t.y = 0;
}
}
if (z_zero)
{
{
bf_torque.z = 0;
t.z = 0;
}
}

// use the d_invamping by gamma_r and rotate back to lab frame
// Notes For the Future: take special care when have anisotropic gamma_r
Expand Down
12 changes: 6 additions & 6 deletions hoomd/md/TwoStepRATTLEBDGPU.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -291,20 +291,20 @@ __global__ void gpu_rattle_brownian_step_one_kernel(Scalar4* d_pos,
bf_torque.z = NormalDistribution<Scalar>(sigma_r.z)(rng);

if (x_zero)
{
{
bf_torque.x = 0;
t.x = 0;
}
}
if (y_zero)
{
{
bf_torque.y = 0;
t.y = 0;
}
}
if (z_zero)
{
{
bf_torque.z = 0;
t.z = 0;
}
}

// use the damping by gamma_r and rotate back to lab frame
// For Future Updates: take special care when have anisotropic gamma_r
Expand Down

0 comments on commit a1d7435

Please sign in to comment.