File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1493,44 +1493,6 @@ pub(crate) mod subdomain_classification {
14931493 fn get ( & self , i : usize ) -> I ;
14941494 }
14951495
1496- /// Classifier that assigns only the owning subdomain to a particle
1497- pub struct NoMarginClassifier < I : Index > {
1498- subdomain : I ,
1499- }
1500-
1501- impl < I : Index , R : Real > ParticleToSubdomainClassifier < I , R > for NoMarginClassifier < I > {
1502- #[ inline( always) ]
1503- fn new ( ) -> Self {
1504- NoMarginClassifier {
1505- subdomain : I :: zero ( ) ,
1506- }
1507- }
1508-
1509- #[ inline( always) ]
1510- fn classify_particle (
1511- & mut self ,
1512- particle : & Vector3 < R > ,
1513- subdomain_grid : & UniformCartesianCubeGrid3d < I , R > ,
1514- _ghost_particle_margin : R ,
1515- ) {
1516- // Find the owning subdomain of the particle
1517- let subdomain_ijk = subdomain_grid. enclosing_cell ( particle) ;
1518- // And store its flattened index
1519- let flat_subdomain_idx = subdomain_grid. flatten_cell_index_array ( & subdomain_ijk) ;
1520- self . subdomain = flat_subdomain_idx;
1521- }
1522-
1523- #[ inline( always) ]
1524- fn len ( & self ) -> usize {
1525- 1
1526- }
1527-
1528- #[ inline( always) ]
1529- fn get ( & self , _i : usize ) -> I {
1530- self . subdomain
1531- }
1532- }
1533-
15341496 /// Classifier that assign a particle to its owning subdomain and all subdomains where it's a ghost particle
15351497 pub struct GhostMarginClassifier < I : Index > {
15361498 subdomains : ArrayVec < I , 8 > ,
You can’t perform that action at this time.
0 commit comments