Skip to content

Commit

Permalink
Reformatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke committed Dec 16, 2024
1 parent e1bb7c3 commit de873b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,8 @@ where
let check_potential = empty_array::<Scalar, 2>()
.simple_mult_into_resize(
u.r(),
empty_array::<Scalar, 2>().simple_mult_into_resize(
vt.r(),
multipoles_subset.r(),
),
empty_array::<Scalar, 2>()
.simple_mult_into_resize(vt.r(), multipoles_subset.r()),
);

for (multipole_idx, &local_idx) in local_idxs.iter().enumerate() {
Expand Down Expand Up @@ -703,10 +701,8 @@ where
let check_potential = empty_array::<Scalar, 2>()
.simple_mult_into_resize(
u.r(),
empty_array::<Scalar, 2>().simple_mult_into_resize(
vt.r(),
multipoles_subset.r(),
),
empty_array::<Scalar, 2>()
.simple_mult_into_resize(vt.r(), multipoles_subset.r()),
);

for (local_multipole_idx, &global_local_idx) in
Expand Down
6 changes: 2 additions & 4 deletions kifmm/src/fmm/field_translation/target/multi_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,8 @@ where
}

for (i, target_vec_i) in target_vec.iter().enumerate().take(NSIBLINGS) {
let tmp = empty_array::<Scalar, 2>().simple_mult_into_resize(
target_vec_i.r(),
parent_locals.r(),
);
let tmp = empty_array::<Scalar, 2>()
.simple_mult_into_resize(target_vec_i.r(), parent_locals.r());

for j in 0..chunk_size {
let chunk_displacement = j * NSIBLINGS;
Expand Down

0 comments on commit de873b9

Please sign in to comment.