move direction

This commit is contained in:
Magnus Ulimoen 2020-04-15 20:14:44 +02:00
parent a37d9f4bce
commit 02cac56fb5
2 changed files with 8 additions and 7 deletions

View File

@ -1,6 +1,7 @@
use super::grid::{Grid, Metrics};
use super::integrate;
use super::operators::{InterpolationOperator, SbpOperator2d, UpwindOperator2d};
use super::utils::Direction;
use super::Float;
use ndarray::azip;
use ndarray::prelude::*;
@ -605,13 +606,6 @@ pub enum BoundaryCharacteristic {
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 BoundaryCharacteristics = Direction<BoundaryCharacteristic>;

View File

@ -2,6 +2,13 @@ use crate::grid::Grid;
use crate::Float;
use json::JsonValue;
pub struct Direction<T> {
pub north: T,
pub south: T,
pub west: T,
pub east: T,
}
#[derive(Debug, Clone)]
pub struct ExtendedGrid {
pub grid: Grid,