Granular.jl

Julia package for granular dynamics simulation
git clone git://src.adamsgaard.dk/Granular.jl
Log | Files | Refs | README | LICENSE

commit 6ea9dc8a5734e221c53212c444ebd90b91eb578b
parent 15e08a9f502d2abb083235b8d8f0ca3e82daed7e
Author: Anders Damsgaard <andersd@riseup.net>
Date:   Sun, 30 Apr 2017 13:50:51 -0400

check size of correct parameter in Ocean type

Diffstat:
Msrc/grid.jl | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/grid.jl b/src/grid.jl @@ -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