change trait signaturs

This commit is contained in:
Magnus Ulimoen
2020-04-15 17:17:48 +02:00
parent 6df4632719
commit d089df6d54
5 changed files with 40 additions and 40 deletions

View File

@@ -291,7 +291,7 @@ impl SbpOperator1d for Upwind4 {
}
}
impl<SBP: SbpOperator1d> SbpOperator2d for (Upwind4, SBP) {
impl<SBP: SbpOperator1d> SbpOperator2d for (&Upwind4, &SBP) {
fn diffxi(&self, prev: ArrayView2<Float>, mut fut: ArrayViewMut2<Float>) {
assert_eq!(prev.shape(), fut.shape());
assert!(prev.shape()[1] >= 2 * Upwind4::BLOCK.len());
@@ -415,7 +415,7 @@ impl UpwindOperator1d for Upwind4 {
}
}
impl<SBP: UpwindOperator1d> UpwindOperator2d for (Upwind4, SBP) {
impl<SBP: UpwindOperator1d> UpwindOperator2d for (&Upwind4, &SBP) {
fn dissxi(&self, prev: ArrayView2<Float>, mut fut: ArrayViewMut2<Float>) {
assert_eq!(prev.shape(), fut.shape());
assert!(prev.shape()[1] >= 2 * Upwind4::BLOCK.len());