We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
unwrap
1 parent efcdf83 commit 7ffc086Copy full SHA for 7ffc086
1 file changed
pineappl_capi/src/lib.rs
@@ -2266,17 +2266,20 @@ pub unsafe extern "C" fn pineappl_grid_evolve(
2266
})
2267
.collect();
2268
2269
- let fk_table = grid.evolve(
2270
- slices,
2271
- order_mask,
2272
- (xi[0], xi[1], xi[2]),
2273
- &AlphasTable {
2274
- ren1: ren1.to_vec(),
2275
- alphas: alphas.to_vec(),
2276
- },
2277
- );
2278
-
2279
- Box::new(fk_table.unwrap().into_grid())
+ let fk_table = grid
+ .evolve(
+ slices,
+ order_mask,
+ (xi[0], xi[1], xi[2]),
+ &AlphasTable {
+ ren1: ren1.to_vec(),
+ alphas: alphas.to_vec(),
+ },
+ )
+ // UNWRAP: error handling in the CAPI is to abort
2280
+ .unwrap();
2281
+
2282
+ Box::new(fk_table.into_grid())
2283
}
2284
2285
/// Optimize the size of this FK-table by removing heavy quark flavors assumed to be zero.
0 commit comments