[GRASS-SVN] r37246 - grass/branches/releasebranch_6_4/imagery/i.atcorr

svn_grass at osgeo.org svn_grass at osgeo.org
Sat May 16 12:42:34 EDT 2009


Author: neteler
Date: 2009-05-16 12:42:34 -0400 (Sat, 16 May 2009)
New Revision: 37246

Modified:
   grass/branches/releasebranch_6_4/imagery/i.atcorr/main.cpp
Log:
downsize the static cache for 32bit CPUs

Modified: grass/branches/releasebranch_6_4/imagery/i.atcorr/main.cpp
===================================================================
--- grass/branches/releasebranch_6_4/imagery/i.atcorr/main.cpp	2009-05-16 16:42:16 UTC (rev 37245)
+++ grass/branches/releasebranch_6_4/imagery/i.atcorr/main.cpp	2009-05-16 16:42:34 UTC (rev 37246)
@@ -27,6 +27,7 @@
 * Code clean-up and port to GRASS 6.3, 15.12.2006:
   Yann Chemin, ychemin(at)gmail.com 
 
+TODO: use dynamic allocation for TiCache 
 ***************************************************************************/
 
 #include <cstdlib>
@@ -129,7 +130,9 @@
 {
     enum TICacheSize
     {
-        MAX_TIs = 8192 /* this value is a guess, increase it if in general more categories are used */
+        MAX_TIs = 4096 /* this value is a guess, increase it if in general 
+                        * more categories are used. TODO: use dynamic allocation
+                        * since 4096 is the limit on 32bit */
     };
     TransformInput tis[MAX_TIs];
     float alts[MAX_TIs];
@@ -171,8 +174,9 @@
 {
     enum TIMapSize
     {
-	MAX_TICs = 8192  /* this value is a guess. It means that <size> TI's will be 
-                          * the max combinations of vis/alt pairs */
+	MAX_TICs = 4096  /* this value is a guess. It means that <size> TI's will be 
+                          * the max combinations of vis/alt pairs. TODO: use dynamic allocation
+                          * since 4096 is the limit on 32bit */
     };
 
     TICache tic[MAX_TICs]; /* array of TICaches */



More information about the grass-commit mailing list