[cig-commits] r4305 - in long/3D/Gale/trunk/src/PICellerator: . src

walter at geodynamics.org walter at geodynamics.org
Thu Aug 17 17:13:11 PDT 2006


Author: walter
Date: 2006-08-17 17:13:11 -0700 (Thu, 17 Aug 2006)
New Revision: 4305

Modified:
   long/3D/Gale/trunk/src/PICellerator/
   long/3D/Gale/trunk/src/PICellerator/src/main.c
Log:
 r475 at earth:  boo | 2006-08-17 17:11:07 -0700
  r473 at earth (orig r366):  WalterLandry | 2006-08-17 17:25:39 -0700
  Fix a statement/declaration mix that does not work on older compilers
 



Property changes on: long/3D/Gale/trunk/src/PICellerator
___________________________________________________________________
Name: svk:merge
   - 00de75e2-39f1-0310-8538-9683d00a49cc:/trunk:365
aee11096-cf10-0410-a191-eea5772ba81f:/cig:474
   + 00de75e2-39f1-0310-8538-9683d00a49cc:/trunk:366
aee11096-cf10-0410-a191-eea5772ba81f:/cig:475

Modified: long/3D/Gale/trunk/src/PICellerator/src/main.c
===================================================================
--- long/3D/Gale/trunk/src/PICellerator/src/main.c	2006-08-18 00:13:02 UTC (rev 4304)
+++ long/3D/Gale/trunk/src/PICellerator/src/main.c	2006-08-18 00:13:11 UTC (rev 4305)
@@ -66,6 +66,8 @@
 	int	                 tmp         =  0;
 	PICelleratorContext* context = NULL;
 	
+	char* errMessage = "Component dictionary must have unique names\n";
+
 	/* Initialise PETSc, get world info */
 	MPI_Init( &argc, &argv );
 	MPI_Comm_dup( MPI_COMM_WORLD, &CommWorld );
@@ -110,7 +112,6 @@
 	context->CF = Stg_ComponentFactory_New( dictionary, componentDict, context->register_Register );
 
 	/*check components dictionary for double entries */
-	char* errMessage = "Component dictionary must have unique names\n";
 	CheckDictionaryKeys(componentDict, errMessage);
 	
 	LiveComponentRegister_Add( context->CF->LCRegister, (Stg_Component*) context );



More information about the cig-commits mailing list