[cig-commits] commit: Get picIntegrationPoints from the general dictionary instead of requiring it in the AdvDiffResidualForceTerm component

Mercurial hg at geodynamics.org
Sun Nov 7 18:12:13 PST 2010


changeset:   773:b522a8889b1e
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Sun Nov 07 09:12:03 2010 -0800
files:       SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c
description:
Get picIntegrationPoints from the general dictionary instead of requiring it in the AdvDiffResidualForceTerm component


diff -r e0cceb47d2ea -r b522a8889b1e SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c
--- a/SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c	Sat Nov 06 11:14:31 2010 -0700
+++ b/SLE/ProvidedSystems/AdvectionDiffusion/src/Residual.c	Sun Nov 07 09:12:03 2010 -0800
@@ -234,7 +234,7 @@ void _AdvDiffResidualForceTerm_AssignFro
 		Journal_Firewall( False, Journal_Register( Error_Type, (Name)self->type  ), "Cannot understand '%s'\n", upwindParamFuncName );
 
 	defaultDiffusivity = Stg_ComponentFactory_GetDouble( cf, self->name, (Dictionary_Entry_Key)"defaultDiffusivity", 1.0  );
-	picSwarm       = Stg_ComponentFactory_ConstructByKey( cf, self->name, (Dictionary_Entry_Key)"picSwarm", Swarm, True, data  ) ;
+	picSwarm       = Stg_ComponentFactory_ConstructByName( cf, (Name)"picIntegrationPoints", IntegrationPointsSwarm, True, data  ) ;
 	materials_Register = ((PICelleratorContext*)(self->context))->materials_Register;
 
 	_AdvDiffResidualForceTerm_Init( self, velocityField, defaultDiffusivity,



More information about the CIG-COMMITS mailing list