[cig-commits] r4307 - in long/3D/Gale/trunk/src/StgFEM: . src

walter at geodynamics.org walter at geodynamics.org
Thu Aug 17 17:15:08 PDT 2006


Author: walter
Date: 2006-08-17 17:15:08 -0700 (Thu, 17 Aug 2006)
New Revision: 4307

Modified:
   long/3D/Gale/trunk/src/StgFEM/
   long/3D/Gale/trunk/src/StgFEM/src/main.c
Log:
 r744 at earth:  boo | 2006-08-17 17:13:13 -0700
  r742 at earth (orig r626):  WalterLandry | 2006-08-17 17:29:02 -0700
  Fix a statement/declaration mix that does not work on older compilers
 



Property changes on: long/3D/Gale/trunk/src/StgFEM
___________________________________________________________________
Name: svk:merge
   - 38867592-cf10-0410-9e16-a142ea72ac34:/cig:743
db209038-57f2-0310-97fa-b160e0ae9d04:/trunk:625
   + 38867592-cf10-0410-9e16-a142ea72ac34:/cig:744
db209038-57f2-0310-97fa-b160e0ae9d04:/trunk:626

Modified: long/3D/Gale/trunk/src/StgFEM/src/main.c
===================================================================
--- long/3D/Gale/trunk/src/StgFEM/src/main.c	2006-08-18 00:15:05 UTC (rev 4306)
+++ long/3D/Gale/trunk/src/StgFEM/src/main.c	2006-08-18 00:15:08 UTC (rev 4307)
@@ -74,6 +74,8 @@
 	/* context */
 	FiniteElementContext*		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 );
@@ -117,7 +119,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