Skip to content

Commit

Permalink
core: Reinit longrange stuff on manual cutoff or skin change (#3717)
Browse files Browse the repository at this point in the history
Description of changes:
- (d)P3M depends on the local box size and skin (because this sets he bounding box for local particles), so it has to be reinitialized if they change.

@jngrad this is also a candidate for back porting.
  • Loading branch information
kodiakhq[bot] authored May 15, 2020
2 parents f6df110 + 944fb45 commit ff10b53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ void on_cell_structure_change() {
void on_temperature_change() { lb_lbfluid_reinit_parameters(); }

void on_parameter_change(int field) {

switch (field) {
case FIELD_BOXL:
on_boxl_change();
Expand All @@ -320,6 +319,7 @@ void on_parameter_change(int field) {
case FIELD_MIN_GLOBAL_CUT:
case FIELD_SKIN:
cells_on_geometry_change(false);
on_coulomb_change();
break;
case FIELD_NODEGRID:
grid_changed_n_nodes();
Expand Down

0 comments on commit ff10b53

Please sign in to comment.