Skip to content

Commit ffe1ca6

Browse files
Unfo full optimization
1 parent a69c3c0 commit ffe1ca6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pineappl/src/grid.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,8 +1641,10 @@ impl Grid {
16411641
new_grid.subgrids = new_subgrids;
16421642
new_grid.metadata = self.metadata.clone();
16431643

1644-
// Optimize the Grid to remove empty orders, duplicate/symmetrical channels, etc.
1645-
new_grid.optimize();
1644+
new_grid.optimize_using(GridOptFlags::STRIP_EMPTY_ORDERS);
1645+
new_grid.optimize_using(GridOptFlags::STRIP_EMPTY_ORDERS);
1646+
new_grid.optimize_using(GridOptFlags::MERGE_SAME_CHANNELS);
1647+
16461648
Ok(new_grid)
16471649
}
16481650
}

0 commit comments

Comments
 (0)