move direction
This commit is contained in:
		@@ -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>;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user