re-add specialization of diss-ops
This commit is contained in:
parent
1f15bcc056
commit
dc126938bb
|
@ -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
|
||||||
|
|
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue