comparison Grids/src/EquidistantGrid.jl @ 221:235f0a771c8f package_refactor

Make all packages load properly
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 26 Jun 2019 13:23:42 +0200
parents 1ad91e11b1f4
children 1128ab4f5758
comparison
equal deleted inserted replaced
220:5bba704a89d8 221:235f0a771c8f
1 # EquidistantGrid is a grid with equidistant grid spacing per coordinat 1 # EquidistantGrid is a grid with equidistant grid spacing per coordinat
2 # direction. The domain is defined through the two points P1 = x̄₁, P2 = x̄₂ 2 # direction. The domain is defined through the two points P1 = x̄₁, P2 = x̄₂
3 # by the exterior product of the vectors obtained by projecting (x̄₂-x̄₁) onto 3 # by the exterior product of the vectors obtained by projecting (x̄₂-x̄₁) onto
4 # the coordinate directions. E.g for a 2D grid with x̄₁=(-1,0) and x̄₂=(1,2) 4 # the coordinate directions. E.g for a 2D grid with x̄₁=(-1,0) and x̄₂=(1,2)
5 # the domain is defined as (-1,1)x(0,2). 5 # the domain is defined as (-1,1)x(0,2).
6
7 export EquidistantGrid
6 8
7 struct EquidistantGrid{Dim,T<:Real} <: AbstractGrid 9 struct EquidistantGrid{Dim,T<:Real} <: AbstractGrid
8 size::NTuple{Dim, Int} # First coordinate direction stored first 10 size::NTuple{Dim, Int} # First coordinate direction stored first
9 limit_lower::NTuple{Dim, T} 11 limit_lower::NTuple{Dim, T}
10 limit_upper::NTuple{Dim, T} 12 limit_upper::NTuple{Dim, T}