[GRASS-SVN] r49659 - grass/trunk/lib/gmath
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Dec 11 23:42:31 EST 2011
Author: hamish
Date: 2011-12-11 20:42:31 -0800 (Sun, 11 Dec 2011)
New Revision: 49659
Modified:
grass/trunk/lib/gmath/lu.c
Log:
don't keep going if we're going to bail out
Modified: grass/trunk/lib/gmath/lu.c
===================================================================
--- grass/trunk/lib/gmath/lu.c 2011-12-12 04:33:11 UTC (rev 49658)
+++ grass/trunk/lib/gmath/lu.c 2011-12-12 04:42:31 UTC (rev 49659)
@@ -32,8 +32,10 @@
if ((temp = fabs(a[i][j])) > big)
big = temp;
- if (big == 0.0)
+ if (big == 0.0) {
is_singular = TRUE;
+ break;
+ }
vv[i] = 1.0 / big;
}
More information about the grass-commit
mailing list