add Debug to some structs

This commit is contained in:
Magnus Ulimoen 2020-02-19 20:02:22 +01:00
parent c8bed50d96
commit 2e013507b2
5 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,7 @@ pub const GAMMA: f32 = 1.4;
// A collection of buffers that allows one to efficiently
// move to the next state
#[derive(Debug)]
pub struct System<SBP: SbpOperator> {
sys: (Field, Field),
wb: WorkBuffers,
@ -643,6 +644,7 @@ fn SAT_characteristic(
}
}
#[derive(Debug)]
pub struct WorkBuffers {
k: [Field; 4],
tmp: (Field, Field, Field, Field, Field, Field),

View File

@ -2,6 +2,7 @@ use super::SbpOperator;
use crate::diff_op_1d;
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
#[derive(Debug)]
pub struct SBP4 {}
diff_op_1d!(SBP4, diff_1d, SBP4::BLOCK, SBP4::DIAG, false);

View File

@ -2,6 +2,7 @@ use super::SbpOperator;
use crate::diff_op_1d;
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
#[derive(Debug)]
pub struct SBP8 {}
diff_op_1d!(SBP8, diff_1d, SBP8::BLOCK, SBP8::DIAG, false);

View File

@ -2,6 +2,7 @@ use super::{SbpOperator, UpwindOperator};
use crate::diff_op_1d;
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2, Axis};
#[derive(Debug)]
pub struct Upwind4 {}
/// Simdtype used in diff_simd_col

View File

@ -2,6 +2,7 @@ use super::{SbpOperator, UpwindOperator};
use crate::diff_op_1d;
use ndarray::{s, ArrayView1, ArrayView2, ArrayViewMut1, ArrayViewMut2};
#[derive(Debug)]
pub struct Upwind9 {}
diff_op_1d!(Upwind9, diff_1d, Upwind9::BLOCK, Upwind9::DIAG, false);