File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,9 @@ use ndslice::Shape;
41
41
use ndslice:: ShapeError ;
42
42
use ndslice:: SliceError ;
43
43
use ndslice:: reshape:: Limit ;
44
+ use ndslice:: reshape:: ReshapeError ;
44
45
use ndslice:: reshape:: ReshapeSliceExt ;
46
+ use ndslice:: reshape:: reshape_selection;
45
47
use ndslice:: selection;
46
48
use ndslice:: selection:: EvalOpts ;
47
49
use ndslice:: selection:: ReifySlice ;
@@ -121,12 +123,7 @@ where
121
123
122
124
(
123
125
if reshaped_slice != * slice_of_root {
124
- Selection :: of_ranks (
125
- & reshaped_slice,
126
- & selection_of_root
127
- . eval ( & selection:: EvalOpts :: strict ( ) , slice_of_root) ?
128
- . collect :: < BTreeSet < _ > > ( ) ,
129
- ) ?
126
+ reshape_selection ( selection_of_root, root_mesh_shape. slice ( ) , & reshaped_slice) ?
130
127
} else {
131
128
selection_of_root
132
129
} ,
@@ -494,6 +491,9 @@ pub enum CastError {
494
491
495
492
#[ error( transparent) ]
496
493
Other ( #[ from] anyhow:: Error ) ,
494
+
495
+ #[ error( transparent) ]
496
+ ReshapeError ( #[ from] ReshapeError ) ,
497
497
}
498
498
499
499
// This has to be compiled outside of test mode because the bootstrap binary
You can’t perform that action at this time.
0 commit comments