tcheck size of correct parameter in Ocean type - Granular.jl - Julia package for granular dynamics simulation
HTML git clone git://src.adamsgaard.dk/Granular.jl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 6ea9dc8a5734e221c53212c444ebd90b91eb578b
DIR parent 15e08a9f502d2abb083235b8d8f0ca3e82daed7e
HTML Author: Anders Damsgaard <andersd@riseup.net>
Date: Sun, 30 Apr 2017 13:50:51 -0400
check size of correct parameter in Ocean type
Diffstat:
M src/grid.jl | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
DIR diff --git a/src/grid.jl b/src/grid.jl
t@@ -63,8 +63,8 @@ Returns the `i`, `j` index of the ocean grid cell containing the `point`.
function findCellContainingPoint(ocean::Ocean, point::Array{float, 1})
found = false
- for i=1:size(ocean.h, 1)
- for j=1:size(ocean.h, 2)
+ for i=1:size(ocean.xh, 1)
+ for j=1:size(ocean.yh, 2)
if isPointInCell(ocean, i, j, point)
return i, j
end