[cig-commits] r14713 - long/3D/SNAC/trunk/Snac/snac2restart

echoi at geodynamics.org echoi at geodynamics.org
Wed Apr 15 09:12:52 PDT 2009


Author: echoi
Date: 2009-04-15 09:12:52 -0700 (Wed, 15 Apr 2009)
New Revision: 14713

Modified:
   long/3D/SNAC/trunk/Snac/snac2restart/snac2restart.c
Log:
1.Removed the redundant local declations of element{Local,Global}Size arrays.
	- It is required to declare these arrays globally.

2.Removed an unnecessary array, gnode[3].



Modified: long/3D/SNAC/trunk/Snac/snac2restart/snac2restart.c
===================================================================
--- long/3D/SNAC/trunk/Snac/snac2restart/snac2restart.c	2009-04-15 04:44:44 UTC (rev 14712)
+++ long/3D/SNAC/trunk/Snac/snac2restart/snac2restart.c	2009-04-15 16:12:52 UTC (rev 14713)
@@ -148,10 +148,6 @@
 	unsigned int	dumpIteration;
 	double			time;
 	double			dt;
-	unsigned int	elementGlobalSize[3];
-	unsigned int	elementLocalSize[3];
-	unsigned int	gnode[3];
-	unsigned int	rank_array[3];
 	unsigned int	rankI, rankJ, rankK;
 
     /* safety check and assign restartStep and path */
@@ -174,9 +170,6 @@
 				&rank_array[0],&rank_array[1],&rank_array[2],
 				&elementLocalSize[0], &elementLocalSize[1], &elementLocalSize[2] );
 		fclose( simIn );
-		gnode[0] = elementGlobalSize[0]+1;
-		gnode[1] = elementGlobalSize[1]+1;
-		gnode[2] = elementGlobalSize[2]+1;
 		fprintf(stderr," ... with success\n"); 
 	}
 



More information about the CIG-COMMITS mailing list