Skip to content

Commit

Permalink
fix: remove debug logs and centered
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Dec 1, 2023
1 parent eead39b commit 09c6f61
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions server/algorithms/src/bootstrap/s2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ impl<'a> BootstrapS2<'a> {
cells.0
} else {
let origin_low = CellID::from(region.lo()).parent(self.level);
// let origin_low = CellID::from(region.lo()).parent(self.level);
let lo = CellID::from(region.lo())
.parent(self.level)
.traverse(Dir::S, self.size)
Expand All @@ -186,6 +187,12 @@ impl<'a> BootstrapS2<'a> {
log::error!("origin: {} | lo: {}", origin_low.face(), lo.face());
}
let origin_hi = CellID::from(region.hi()).parent(self.level);
// if origin_low == lo {
// log::info!("origin: {} | lo: {}", origin_low.face(), lo.face());
// } else {
// log::error!("origin: {} | lo: {}", origin_low.face(), lo.face());
// }
// let origin_hi = CellID::from(region.hi()).parent(self.level);
let hi = CellID::from(region.hi())
.parent(self.level)
.traverse(Dir::N, self.size)
Expand All @@ -195,6 +202,11 @@ impl<'a> BootstrapS2<'a> {
} else {
log::error!("origin: {} | hi: {}", origin_hi.face(), hi.face());
}
// if origin_hi == hi {
// log::info!("origin: {} | hi: {}", origin_hi.face(), hi.face());
// } else {
// log::error!("origin: {} | hi: {}", origin_hi.face(), hi.face());
// }

let mut cell_grids = vec![];

Expand Down
2 changes: 1 addition & 1 deletion server/algorithms/src/s2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ pub trait BuildGrid {

impl BuildGrid for CellID {
fn build_grid(&self, size: u8) -> Vec<CellID> {
let get_to_start = ((size as f32 / 2.).floor() as u8) + 1;
let get_to_start = (size as f32 / 2.).floor() as u8;
let mut starting_cell = self
.traverse(Dir::W, get_to_start)
.traverse(Dir::S, get_to_start);
Expand Down

0 comments on commit 09c6f61

Please sign in to comment.