meas: backfill tests for CurrentLoop

This commit is contained in:
2022-08-05 17:35:55 -07:00
parent 06379ffd30
commit 7d1ee0ad50
2 changed files with 198 additions and 0 deletions

View File

@@ -20,6 +20,17 @@ pub struct SimMeta<R> {
pub feature_size: R,
}
impl<R: Real> SimMeta<R> {
pub fn new(dim: Vec3u, feature_size: R, time_step: R) -> Self {
Self {
dim,
inv_feature_size: feature_size.inv(),
time_step,
feature_size
}
}
}
impl<R: Copy> SimMeta<R> {
pub fn dim(&self) -> Vec3u {
self.dim