From 2e013507b2e6b2da40f17f78d48f3b9656d525e7 Mon Sep 17 00:00:00 2001 From: Magnus Ulimoen Date: Wed, 19 Feb 2020 20:02:22 +0100 Subject: [PATCH] add Debug to some structs --- sbp/src/euler.rs | 2 ++ sbp/src/operators/traditional4.rs | 1 + sbp/src/operators/traditional8.rs | 1 + sbp/src/operators/upwind4.rs | 1 + sbp/src/operators/upwind9.rs | 1 + 5 files changed, 6 insertions(+) diff --git a/sbp/src/euler.rs b/sbp/src/euler.rs index d2008c8..cc126db 100644 --- a/sbp/src/euler.rs +++ b/sbp/src/euler.rs @@ -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 { 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), diff --git a/sbp/src/operators/traditional4.rs b/sbp/src/operators/traditional4.rs index 32c23a4..10051f1 100644 --- a/sbp/src/operators/traditional4.rs +++ b/sbp/src/operators/traditional4.rs @@ -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); diff --git a/sbp/src/operators/traditional8.rs b/sbp/src/operators/traditional8.rs index 27c30d9..eb656ad 100644 --- a/sbp/src/operators/traditional8.rs +++ b/sbp/src/operators/traditional8.rs @@ -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); diff --git a/sbp/src/operators/upwind4.rs b/sbp/src/operators/upwind4.rs index c208dad..95633ec 100644 --- a/sbp/src/operators/upwind4.rs +++ b/sbp/src/operators/upwind4.rs @@ -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 diff --git a/sbp/src/operators/upwind9.rs b/sbp/src/operators/upwind9.rs index 8053e40..d745641 100644 --- a/sbp/src/operators/upwind9.rs +++ b/sbp/src/operators/upwind9.rs @@ -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);