tremove redundant boolean check - Granular.jl - Julia package for granular dyna… | |
git clone git://src.adamsgaard.dk/Granular.jl | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 3610b39fe2e0ccd8645733a34ec3eedca4e1e11f | |
parent ecb85c842c4e220e3db69c44db4ee2c300388e5f | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 30 Apr 2017 13:07:34 -0400 | |
remove redundant boolean check | |
Diffstat: | |
M src/grid.jl | 8 ++------ | |
1 file changed, 2 insertions(+), 6 deletions(-) | |
--- | |
diff --git a/src/grid.jl b/src/grid.jl | |
t@@ -65,12 +65,8 @@ function findCellContainingPoint(ocean::Ocean, point::Array… | |
end | |
end | |
end | |
- if !found | |
- # throw an error for now, maybe remove ice floe later on | |
- error("point not found in grid") | |
- end | |
- | |
- return i, j | |
+ # throw an error for now, maybe remove ice floe later on | |
+ error("point not found in grid") | |
end | |
export getNonDimensionalCellCoordinates |