DirectIO is working! Also a bit more cleanup.

This commit is contained in:
Cutieguwu
2026-01-01 23:22:26 -05:00
parent 1607f7ebfa
commit 53d773e2ea
5 changed files with 30 additions and 34 deletions

View File

@@ -21,6 +21,7 @@ impl Default for Cluster {
impl Cluster {
/// Breaks apart into a vec of clusters,
/// each of cluster_size, excepting last.
#[allow(dead_code)]
pub fn subdivide(&mut self, cluster_len: usize) -> Vec<Cluster> {
let domain_len = self.domain.len();
let mut start = self.domain.start;
@@ -49,6 +50,8 @@ impl Cluster {
clusters
}
// This is used in unit tests at present. Ideally it probably shouldn't exist.
#[allow(dead_code)]
pub fn set_stage(&mut self, stage: Stage) -> &mut Self {
self.stage = stage;
self