Index: /branches/eam_rel9_b1/psLib/src/math/psMinimize.c
===================================================================
--- /branches/eam_rel9_b1/psLib/src/math/psMinimize.c	(revision 6373)
+++ /branches/eam_rel9_b1/psLib/src/math/psMinimize.c	(revision 6374)
@@ -10,6 +10,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.147.4.1.2.7 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-01-17 09:26:50 $
+ *  @version $Revision: 1.147.4.1.2.8 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-02-08 05:43:17 $
  *
  *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -3220,7 +3220,7 @@
     }
 
-    for (int ix = 0; ix < nXterm; ix++) {
-        for (int iy = 0; iy < nYterm; iy++) {
-            for (int iz = 0; iz < nZterm; iz++) {
+    for (int ix = 0; ix < 2*nXterm; ix++) {
+        for (int iy = 0; iy < 2*nYterm; iy++) {
+            for (int iz = 0; iz < 2*nZterm; iz++) {
                 psFree(Sums[ix][iy][iz]);
             }
