add Debug to some structs
This commit is contained in:
parent
c8bed50d96
commit
2e013507b2
|
@ -8,6 +8,7 @@ pub const GAMMA: f32 = 1.4;
|
||||||
|
|
||||||
// A collection of buffers that allows one to efficiently
|
// A collection of buffers that allows one to efficiently
|
||||||
// move to the next state
|
// move to the next state
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct System<SBP: SbpOperator> {
|
pub struct System<SBP: SbpOperator> {
|
||||||
sys: (Field, Field),
|
sys: (Field, Field),
|
||||||
wb: WorkBuffers,
|
wb: WorkBuffers,
|
||||||
|
@ -643,6 +644,7 @@ fn SAT_characteristic(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct WorkBuffers {
|
pub struct WorkBuffers {
|
||||||
k: [Field; 4],
|
k: [Field; 4],
|
||||||
tmp: (Field, Field, Field, Field, Field, Field),
|
tmp: (Field, Field, Field, Field, Field, Field),
|
||||||
|
|
|
@ -2,6 +2,7 @@ use super::SbpOperator;
|
||||||
use crate::diff_op_1d;
|
use crate::diff_op_1d;
|
||||||
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct SBP4 {}
|
pub struct SBP4 {}
|
||||||
|
|
||||||
diff_op_1d!(SBP4, diff_1d, SBP4::BLOCK, SBP4::DIAG, false);
|
diff_op_1d!(SBP4, diff_1d, SBP4::BLOCK, SBP4::DIAG, false);
|
||||||
|
|
|
@ -2,6 +2,7 @@ use super::SbpOperator;
|
||||||
use crate::diff_op_1d;
|
use crate::diff_op_1d;
|
||||||
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct SBP8 {}
|
pub struct SBP8 {}
|
||||||
|
|
||||||
diff_op_1d!(SBP8, diff_1d, SBP8::BLOCK, SBP8::DIAG, false);
|
diff_op_1d!(SBP8, diff_1d, SBP8::BLOCK, SBP8::DIAG, false);
|
||||||
|
|
|
@ -2,6 +2,7 @@ use super::{SbpOperator, UpwindOperator};
|
||||||
use crate::diff_op_1d;
|
use crate::diff_op_1d;
|
||||||
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2, Axis};
|
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2, Axis};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Upwind4 {}
|
pub struct Upwind4 {}
|
||||||
|
|
||||||
/// Simdtype used in diff_simd_col
|
/// Simdtype used in diff_simd_col
|
||||||
|
|
|
@ -2,6 +2,7 @@ use super::{SbpOperator, UpwindOperator};
|
||||||
use crate::diff_op_1d;
|
use crate::diff_op_1d;
|
||||||
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
pub struct Upwind9 {}
|
pub struct Upwind9 {}
|
||||||
|
|
||||||
diff_op_1d!(Upwind9, diff_1d, Upwind9::BLOCK, Upwind9::DIAG, false);
|
diff_op_1d!(Upwind9, diff_1d, Upwind9::BLOCK, Upwind9::DIAG, false);
|
||||||
|
|
Loading…
Reference in New Issue