[cig-commits] commit: Make MeshGenerator accept 'dim' as well as 'dims'

Mercurial hg at geodynamics.org
Tue Dec 22 22:56:52 PST 2009


changeset:   511:ca70ab78f990
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Tue Dec 22 22:55:01 2009 -0800
files:       Mesh/src/MeshGenerator.c
description:
Make MeshGenerator accept 'dim' as well as 'dims'


diff -r 30e6307b06ba -r ca70ab78f990 Mesh/src/MeshGenerator.c
--- a/Mesh/src/MeshGenerator.c	Tue Dec 22 13:21:14 2009 -0800
+++ b/Mesh/src/MeshGenerator.c	Tue Dec 22 22:55:01 2009 -0800
@@ -146,7 +146,8 @@ void _MeshGenerator_Construct( void* mes
 	}
 
 	/* Read dimensions and state. */
-	nDims = Stg_ComponentFactory_GetUnsignedInt( cf, self->name, "dims", 2 );
+	nDims = Stg_ComponentFactory_GetUnsignedInt( cf, self->name, "dim", 2 );
+	nDims = Stg_ComponentFactory_GetUnsignedInt( cf, self->name, "dims", nDims );
 	MeshGenerator_SetDimSize( self, nDims );
 	enabledDimsList = Dictionary_Get( dict, "enabledDims" );
 	enabledIncList = Dictionary_Get( dict, "enabledIncidence" );



More information about the CIG-COMMITS mailing list