Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
RudolfWeeber committed Nov 27, 2023
1 parent 24a4197 commit f418147
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/core/lb/particle_coupling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,6 @@ void ParticleCoupling::kernel(Particle &p) {
Utils::Vector3d force_on_particle = {};
auto folded_pos = box_geo.folded_position(p.pos());


#ifdef ENGINE
if (not p.swimming().is_engine_force_on_fluid)
#endif
Expand Down
7 changes: 3 additions & 4 deletions testsuite/python/lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -565,18 +565,17 @@ def test_viscous_coupling_pairs(self):
[n.last_applied_force for n in all_coupling_nodes])
np.testing.assert_allclose(
np.sum(applied_forces, axis=0), [0, 0, 0])

def test_viscous_coupling_rounding(self):
lbf = self.lb_class(**self.params, **self.lb_params)
self.system.lb = lbf
self.system.thermostat.set_lb(LB_fluid=lbf, seed=3, gamma=self.gamma)
p=self.system.part.add(pos=[-1E-30]*3,v=[-1,0,0])
p = self.system.part.add(pos=[-1E-30] * 3, v=[-1, 0, 0])
self.system.integrator.run(1)
for i in range(20):
for _ in range(20):
self.system.integrator.run(1)
self.assertTrue(np.all(p.f != 0.0))


def test_thermalization_force_balance(self):
system = self.system

Expand Down

0 comments on commit f418147

Please sign in to comment.