Skip to content

Commit

Permalink
Added global cell count (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbetcke authored Jan 25, 2025
1 parent 534d0e3 commit 9e9f736
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/traits/grid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,9 @@ pub trait ParallelGrid {

/// Return the cell index layout that describes where each global cell lives
fn cell_layout(&self) -> Rc<IndexLayout<'_, Self::C>>;

/// Return the global number of cells
fn global_cell_count(&self) -> usize {
self.cell_layout().number_of_global_indices()
}
}

0 comments on commit 9e9f736

Please sign in to comment.