tFix typo in docstring - Granular.jl - Julia package for granular dynamics simu… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8d953de0b3264014f25228a388cbc7179cf26f1b | |
parent e30a25e68ebefda2139e2a878784f47745b5903b | |
Author: Anders Damsgaard <[email protected]> | |
Date: Tue, 30 Jan 2018 13:03:30 -0500 | |
Fix typo in docstring | |
Diffstat: | |
M src/grid.jl | 14 +++++++++++++- | |
1 file changed, 13 insertions(+), 1 deletion(-) | |
--- | |
diff --git a/src/grid.jl b/src/grid.jl | |
t@@ -248,7 +248,7 @@ found the function returns `(0,0)`. | |
* `grid::Any`: grid object containing ocean or atmosphere data. | |
* `point::Vector{Float64}`: two-dimensional vector of point to check. | |
* `method::String`: approach to use for determining if point is inside cell or | |
- not, can be "Conformal" (default) or "Areal". | |
+ not, can be "Conformal" (default) or "Area". | |
""" | |
function findCellContainingPoint(grid::Any, point::Vector{Float64}, | |
sw = Vector{Float64}(2), | |
t@@ -1035,3 +1035,15 @@ function fitGridToGrains!(simulation::Simulation, grid:… | |
nothing | |
end | |
+ | |
+function findPorosity(grid::Any) | |
+ | |
+ cell_area = 0.0 | |
+ for ix in size(grid.xh, 1) | |
+ for iy in size(grid.xh, 2) | |
+ cell_area = | |
+ | |
+ end | |
+ end | |
+ | |
+end |