Skip to content

Commit caf3747

Browse files
MatteoZammataromatteo.zammataro
authored andcommitted
Fix formatting - lattice.cpp
1 parent cbe154d commit caf3747

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

src/lattice.cpp

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -266,22 +266,22 @@ std::pair<double, array<int, 3>> RectLattice::distance(
266266
double dx = u.x != 0.0 ? (x0 - x) / u.x : INFTY;
267267
double dy = u.y != 0.0 ? (y0 - y) / u.y : INFTY;
268268
double dz = is_3d_ ? (u.z != 0.0 ? (z0 - z) / u.z : INFTY) : INFTY;
269-
269+
270270
double d = dx;
271-
array<int, 3> lattice_trans = {0,0,0};
272-
lattice_trans[0] = copysign(1, u.x);
273-
274-
if (dy < d) {
275-
d = dy;
276-
lattice_trans[0] = 0;
277-
lattice_trans[1] = copysign(1, u.y);
271+
array<int, 3> lattice_trans = {0, 0, 0};
272+
lattice_trans[0] = copysign(1, u.x);
273+
274+
if (dy < d) {
275+
d = dy;
276+
lattice_trans[0] = 0;
277+
lattice_trans[1] = copysign(1, u.y);
278278
}
279-
280-
if (is_3d_ && dz < d) {
281-
d = dz;
282-
lattice_trans[0] = 0;
283-
lattice_trans[1] = 0;
284-
lattice_trans[2] = copysign(1, u.z);
279+
280+
if (is_3d_ && dz < d) {
281+
d = dz;
282+
lattice_trans[0] = 0;
283+
lattice_trans[1] = 0;
284+
lattice_trans[2] = copysign(1, u.z);
285285
}
286286

287287
return {d, lattice_trans};

0 commit comments

Comments
 (0)