Fix the inverted sign so that the energy looks reasonable now
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user