Skip to content

Commit

Permalink
Fixed formatting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbbeyer committed Aug 13, 2024
1 parent 65896d6 commit 44b3feb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
16 changes: 9 additions & 7 deletions src/core/lb/LBWalberla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,15 @@ void LBWalberla::on_lees_edwards_change() {
}
auto const &le_bc = system.box_geo->lees_edwards_bc();
auto lees_edwards_object = std::make_unique<LeesEdwardsPack>(
le_bc.shear_direction, le_bc.shear_plane_normal,
[this, le_protocol, &system]() {
return get_pos_offset(system.get_sim_time(), *le_protocol) / get_agrid();
},
[this, le_protocol, &system]() {
return get_shear_velocity(system.get_sim_time(), *le_protocol) * (get_tau() / get_agrid());
});
le_bc.shear_direction, le_bc.shear_plane_normal,
[this, le_protocol, &system]() {
return get_pos_offset(system.get_sim_time(), *le_protocol) /
get_agrid();
},
[this, le_protocol, &system]() {
return get_shear_velocity(system.get_sim_time(), *le_protocol) *
(get_tau() / get_agrid());
});
lb_fluid->set_collision_model(std::move(lees_edwards_object));
lb_fluid->ghost_communication(); // synchronize ghost layers
}
Expand Down
4 changes: 1 addition & 3 deletions src/core/system/System.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,7 @@ void System::on_observable_calc() {
clear_particle_node();
}

void System::on_lees_edwards_change() {
lb.on_lees_edwards_change();
}
void System::on_lees_edwards_change() { lb.on_lees_edwards_change(); }

void System::update_local_geo() {
*local_geo = LocalBox::make_regular_decomposition(
Expand Down
2 changes: 1 addition & 1 deletion src/script_interface/lees_edwards/LeesEdwards.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class LeesEdwards : public AutoParameters<LeesEdwards, System::Leaf> {
system.box_geo->set_lees_edwards_bc(
LeesEdwardsBC{0., 0., shear_direction, shear_plane_normal});
m_lees_edwards->set_protocol(m_protocol->protocol());
system.on_lees_edwards_change();
system.on_lees_edwards_change();
});
}
return {};
Expand Down

0 comments on commit 44b3feb

Please sign in to comment.