re-add specialization of diss-ops

This commit is contained in:
Magnus Ulimoen 2021-01-17 16:15:15 +01:00
parent 1f15bcc056
commit dc126938bb
2 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,3 @@
#![feature(min_specialization)]
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
/// Type used for floats, configure with the `f32` feature /// Type used for floats, configure with the `f32` feature

View File

@ -128,6 +128,12 @@ impl SbpOperator2d for (Box<dyn SbpOperator2d>, Box<dyn SbpOperator2d>) {
} }
impl UpwindOperator2d for (Box<dyn UpwindOperator2d>, Box<dyn UpwindOperator2d>) { impl UpwindOperator2d for (Box<dyn UpwindOperator2d>, Box<dyn UpwindOperator2d>) {
fn dissxi(&self, prev: ArrayView2<Float>, fut: ArrayViewMut2<Float>) {
self.1.dissxi(prev, fut)
}
fn disseta(&self, prev: ArrayView2<Float>, fut: ArrayViewMut2<Float>) {
self.0.disseta(prev, fut)
}
fn op_xi(&self) -> &dyn UpwindOperator1d { fn op_xi(&self) -> &dyn UpwindOperator1d {
self.1.op_xi() self.1.op_xi()
} }