Skip to content

Commit

Permalink
Run cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Jul 3, 2022
1 parent 655feb1 commit 78913be
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions pineappl/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1675,12 +1675,14 @@ impl Grid {

// if `op1` and `op2` below are zero there's no work to do
// TODO: ideally we change the for loops instead of vetoing here
if (has_pdf1 && !non_zero_pid_indices
.iter()
.any(|&tuple| tuple == (tgt_pid1_idx, src_pid1_idx)))
|| (has_pdf2 && !non_zero_pid_indices
if (has_pdf1
&& !non_zero_pid_indices
.iter()
.any(|&tuple| tuple == (tgt_pid2_idx, src_pid2_idx)))
.any(|&tuple| tuple == (tgt_pid1_idx, src_pid1_idx)))
|| (has_pdf2
&& !non_zero_pid_indices
.iter()
.any(|&tuple| tuple == (tgt_pid2_idx, src_pid2_idx)))
{
continue;
}
Expand Down

0 comments on commit 78913be

Please sign in to comment.