SimMeta: make the fields private

This commit is contained in:
2022-08-23 23:23:49 -07:00
parent 17446cdc6b
commit 8e48414d68
6 changed files with 27 additions and 28 deletions

View File

@@ -235,10 +235,10 @@ pub trait AbstractSim: Sync {
}
fn size(&self) -> Index {
Index(self.meta().dim)
Index(self.meta().dim())
}
fn feature_size(&self) -> f32 {
self.meta().feature_size
self.meta().feature_size()
}
fn feature_volume(&self) -> f32 {
let f = self.feature_size();
@@ -249,7 +249,7 @@ pub trait AbstractSim: Sync {
s.x() * s.y() * s.z()
}
fn timestep(&self) -> f32 {
self.meta().time_step
self.meta().time_step()
}
fn width(&self) -> u32 {