Fix the inverted sign so that the energy looks reasonable now

This commit is contained in:
2020-07-12 21:35:40 -07:00
parent 0ea06af0b0
commit 2174113e7d
3 changed files with 17 additions and 15 deletions

View File

@@ -4,13 +4,13 @@ pub struct NumericTermRenderer;
impl NumericTermRenderer {
pub fn render(&self, state: &SimState) {
print!("E: ");
print!("E:");
for cell in state.cells() {
print!("{:>8.1e} ", cell.ez());
print!("{:>10.1e} ", cell.ez());
}
print!("\nB: ");
print!("\nB: ");
for cell in state.cells() {
print!("{:>8.1e} ", cell.by());
print!("{:>10.1e} ", cell.by());
}
print!("\n");
}