[cig-commits] commit: Fix a problem where, in EulerDeform, innerMeshName was getting set to 'false' somehow.

Mercurial hg at geodynamics.org
Fri Oct 7 23:43:19 PDT 2011


changeset:   882:a7f5dabc0334
user:        Walter Landry <wlandry at caltech.edu>
date:        Fri Oct 07 23:40:11 2011 -0700
files:       plugins/EulerDeform/EulerDeform.cxx
description:
Fix a problem where, in EulerDeform, innerMeshName was getting set to 'false' somehow.


diff -r e1fa7a7bc773 -r a7f5dabc0334 plugins/EulerDeform/EulerDeform.cxx
--- a/plugins/EulerDeform/EulerDeform.cxx	Wed Oct 05 15:06:12 2011 -0700
+++ b/plugins/EulerDeform/EulerDeform.cxx	Fri Oct 07 23:40:11 2011 -0700
@@ -149,7 +149,10 @@ void _Underworld_EulerDeform_Build( void
 
 			/* Read contents. */
 			meshName = Dictionary_GetString( sysDict, (Dictionary_Entry_Key)"mesh"  );
+			sys->mesh = Stg_ComponentFactory_ConstructByName( uwCtx->CF, (Name)meshName, Mesh, True, data  );
                         char *innerMeshName=Dictionary_GetString( sysDict, (Dictionary_Entry_Key)"innerMesh"  );
+                        if(strcmp( innerMeshName, "" ) )
+                          sys->inner_mesh = Stg_ComponentFactory_ConstructByName( uwCtx->CF, (Name)innerMeshName, Mesh, True, data  );
 			remesherName = Dictionary_GetString( sysDict, (Dictionary_Entry_Key)"remesher"  );
 
 			if( strcmp( remesherName, "" ) )
@@ -165,8 +168,6 @@ void _Underworld_EulerDeform_Build( void
 			sys->wrapTop = Dictionary_GetBool_WithDefault( sysDict, (Dictionary_Entry_Key)"wrapTop", False  );
 			sys->wrapBottom = Dictionary_GetBool_WithDefault( sysDict, (Dictionary_Entry_Key)"wrapBottom", False  );
 			sys->wrapLeft = Dictionary_GetBool_WithDefault( sysDict, (Dictionary_Entry_Key)"wrapLeft", False  );
-			sys->mesh = Stg_ComponentFactory_ConstructByName( uwCtx->CF, (Name)meshName, Mesh, True, data  );
-			sys->inner_mesh = Stg_ComponentFactory_ConstructByName( uwCtx->CF, (Name)innerMeshName, Mesh, True, data  );
 			/* This line is currently not working, have to manually set the velocity field name.
 				This should be fixed once this plugin has been converted to a component. */
 			/*sys->velField = Stg_ComponentFactory_ConstructByName( uwCtx->CF, (Name)velFieldName, FieldVariable, True, data  );*/



More information about the CIG-COMMITS mailing list