rename to maxwell

This commit is contained in:
Magnus Ulimoen
2019-09-09 18:27:54 +02:00
parent 3513cc496a
commit 8a8e2fefec
5 changed files with 55 additions and 24 deletions

View File

@@ -2,8 +2,7 @@ use wasm_bindgen::prelude::*;
mod maxwell;
mod operators;
use maxwell::{System, WorkBuffers};
use operators::Upwind4;
pub use crate::maxwell::{System, WorkBuffers};
#[cfg(feature = "wee_alloc")]
#[global_allocator]
@@ -35,7 +34,7 @@ impl Universe {
}
pub fn advance(&mut self, dt: f32) {
System::advance::<Upwind4>(&self.sys.0, &mut self.sys.1, dt, Some(&mut self.wb));
System::advance::<operators::Upwind4>(&self.sys.0, &mut self.sys.1, dt, Some(&mut self.wb));
std::mem::swap(&mut self.sys.0, &mut self.sys.1);
}