fix boundary term allocation

This commit is contained in:
Magnus Ulimoen 2020-04-08 23:50:10 +02:00
parent fe2c7f1253
commit 5f7bd70d1b
1 changed files with 3 additions and 3 deletions

View File

@ -47,19 +47,19 @@ impl<T: operators::UpwindOperator> System<T> {
}
_ => None,
},
s: match bt.north {
s: match bt.south {
euler::BoundaryCharacteristic::Vortex(_) => {
Some(ndarray::Array2::zeros((4, grid.nx())))
}
_ => None,
},
e: match bt.north {
e: match bt.east {
euler::BoundaryCharacteristic::Vortex(_) => {
Some(ndarray::Array2::zeros((4, grid.ny())))
}
_ => None,
},
w: match bt.north {
w: match bt.west {
euler::BoundaryCharacteristic::Vortex(_) => {
Some(ndarray::Array2::zeros((4, grid.ny())))
}