Mercurial > repos > public > sbplib_julia
comparison Grids/src/EquidistantGrid.jl @ 256:d8f42733f392 boundary_conditions
Export spacing() for Equidistant grids
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Fri, 28 Jun 2019 14:08:30 +0200 |
| parents | 1128ab4f5758 |
| children | 01017d2b46b0 |
comparison
equal
deleted
inserted
replaced
| 255:e960b877e07e | 256:d8f42733f392 |
|---|---|
| 38 # Returns the spacing of the grid | 38 # Returns the spacing of the grid |
| 39 # | 39 # |
| 40 function spacing(grid::EquidistantGrid) | 40 function spacing(grid::EquidistantGrid) |
| 41 return 1.0./grid.inverse_spacing | 41 return 1.0./grid.inverse_spacing |
| 42 end | 42 end |
| 43 export spacing | |
| 43 | 44 |
| 44 # Computes the points of an EquidistantGrid as an array of tuples with | 45 # Computes the points of an EquidistantGrid as an array of tuples with |
| 45 # the same dimension as the grid. | 46 # the same dimension as the grid. |
| 46 # | 47 # |
| 47 # @Input: grid - an EquidistantGrid | 48 # @Input: grid - an EquidistantGrid |
