Skip to content

Commit

Permalink
Fix bug in DIS evolution
Browse files Browse the repository at this point in the history
  • Loading branch information
cschwan committed Aug 6, 2024
1 parent 2416f20 commit e8dba2b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pineappl/src/evolution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ pub(crate) fn evolve_slice_with_one(
}));
}

let pid = grid.channels()[0].entry()[0].0[index];
let pid = grid.channels()[0].entry()[0].0[1 - index];

Ok((
Array1::from_iter(sub_fk_tables)
Expand Down
3 changes: 3 additions & 0 deletions pineappl/src/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,9 @@ impl Grid {
// TODO: convert this unwrap into error
let grid = lhs.unwrap();

// check that the convolutions are unchanged
assert_eq!(self.convolutions(), grid.convolutions());

// UNWRAP: merging evolved slices should be a proper FkTable again
Ok(FkTable::try_from(grid).unwrap_or_else(|_| unreachable!()))
}
Expand Down

0 comments on commit e8dba2b

Please sign in to comment.