move direction
This commit is contained in:
parent
a37d9f4bce
commit
02cac56fb5
|
@ -1,6 +1,7 @@
|
||||||
use super::grid::{Grid, Metrics};
|
use super::grid::{Grid, Metrics};
|
||||||
use super::integrate;
|
use super::integrate;
|
||||||
use super::operators::{InterpolationOperator, SbpOperator2d, UpwindOperator2d};
|
use super::operators::{InterpolationOperator, SbpOperator2d, UpwindOperator2d};
|
||||||
|
use super::utils::Direction;
|
||||||
use super::Float;
|
use super::Float;
|
||||||
use ndarray::azip;
|
use ndarray::azip;
|
||||||
use ndarray::prelude::*;
|
use ndarray::prelude::*;
|
||||||
|
@ -605,13 +606,6 @@ pub enum BoundaryCharacteristic {
|
||||||
Interpolate(usize),
|
Interpolate(usize),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Direction<T> {
|
|
||||||
pub north: T,
|
|
||||||
pub south: T,
|
|
||||||
pub west: T,
|
|
||||||
pub east: T,
|
|
||||||
}
|
|
||||||
|
|
||||||
pub type BoundaryTerms<'a> = Direction<ArrayView2<'a, Float>>;
|
pub type BoundaryTerms<'a> = Direction<ArrayView2<'a, Float>>;
|
||||||
pub type BoundaryCharacteristics = Direction<BoundaryCharacteristic>;
|
pub type BoundaryCharacteristics = Direction<BoundaryCharacteristic>;
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,13 @@ use crate::grid::Grid;
|
||||||
use crate::Float;
|
use crate::Float;
|
||||||
use json::JsonValue;
|
use json::JsonValue;
|
||||||
|
|
||||||
|
pub struct Direction<T> {
|
||||||
|
pub north: T,
|
||||||
|
pub south: T,
|
||||||
|
pub west: T,
|
||||||
|
pub east: T,
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct ExtendedGrid {
|
pub struct ExtendedGrid {
|
||||||
pub grid: Grid,
|
pub grid: Grid,
|
||||||
|
|
Loading…
Reference in New Issue