Commit 0cd5009d authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Applied code formatting tool

parent 362d83d3
...@@ -3237,7 +3237,7 @@ void engine_makeproxies(struct engine *e) { ...@@ -3237,7 +3237,7 @@ void engine_makeproxies(struct engine *e) {
/* Get the cell ID. */ /* Get the cell ID. */
const int cjd = cell_getid(cdim, iii, jjj, kkk); const int cjd = cell_getid(cdim, iii, jjj, kkk);
/* Early abort */ /* Early abort */
if (cid >= cjd) continue; if (cid >= cjd) continue;
...@@ -3289,10 +3289,10 @@ void engine_makeproxies(struct engine *e) { ...@@ -3289,10 +3289,10 @@ void engine_makeproxies(struct engine *e) {
/* We don't have multipoles yet (or their CoMs) so we will /* We don't have multipoles yet (or their CoMs) so we will
have to cook up something based on cell locations only. We have to cook up something based on cell locations only. We
hence need a lower limit on the distance that the CoMs in hence need a lower limit on the distance that the CoMs in
those cells could have and an upper limit on the distance those cells could have and an upper limit on the distance
of the furthest particle in the multipole from its CoM. of the furthest particle in the multipole from its CoM.
We then can decide whether we are too close for an M2L We then can decide whether we are too close for an M2L
interaction and hence require a proxy as this pair of cells interaction and hence require a proxy as this pair of cells
cannot rely on just an M2L calculation. */ cannot rely on just an M2L calculation. */
/* Minimal distance between any two points in the cells */ /* Minimal distance between any two points in the cells */
...@@ -3304,13 +3304,15 @@ void engine_makeproxies(struct engine *e) { ...@@ -3304,13 +3304,15 @@ void engine_makeproxies(struct engine *e) {
if (periodic) { if (periodic) {
if ((min_dist_CoM2 < max_mesh_dist2) && if ((min_dist_CoM2 < max_mesh_dist2) &&
!(4. * r_max * r_max < theta_crit * theta_crit * min_dist_CoM2)) !(4. * r_max * r_max <
theta_crit * theta_crit * min_dist_CoM2))
proxy_type |= (int)proxy_cell_type_gravity; proxy_type |= (int)proxy_cell_type_gravity;
} else { } else {
if (!(4. * r_max * r_max < theta_crit * theta_crit * min_dist_CoM2)){ if (!(4. * r_max * r_max <
proxy_type |= (int)proxy_cell_type_gravity; theta_crit * theta_crit * min_dist_CoM2)) {
proxy_type |= (int)proxy_cell_type_gravity;
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment