[cig-commits] commit: Added a call to LiveComponentRegister_New in the setup function as
Mercurial
hg at geodynamics.org
Tue Mar 23 10:34:37 PDT 2010
changeset: 403:d70a4f45390d
branch: 1.4.x
tag: 1.4.0
user: JericoRevote
date: Wed Feb 03 10:24:40 2010 +1100
files: MaterialPoints/tests/MaterialComponentsSuite.c
description:
Added a call to LiveComponentRegister_New in the setup function as
LiveComponentRegister is needed by the MaterialPointsSwarm component.
diff -r 0917ade5a21a -r d70a4f45390d MaterialPoints/tests/MaterialComponentsSuite.c
--- a/MaterialPoints/tests/MaterialComponentsSuite.c Tue Feb 02 17:05:14 2010 +1100
+++ b/MaterialPoints/tests/MaterialComponentsSuite.c Wed Feb 03 10:24:40 2010 +1100
@@ -71,6 +71,7 @@ typedef struct {
Variable_Register* svRegister;
ExtensionManager_Register* eRegister;
Materials_Register* mRegister;
+ LiveComponentRegister* lcRegister;
Dictionary* matDict1;
Dictionary* matDict2;
Stg_Shape* shape1;
@@ -147,6 +148,7 @@ void MaterialComponentsSuite_Setup( Mate
Particle* matPoint;
Particle particle;
+ data->lcRegister = LiveComponentRegister_New();
data->svRegister = Variable_Register_New();
data->eRegister = ExtensionManager_Register_New();
data->mRegister = Materials_Register_New();
@@ -215,6 +217,7 @@ void MaterialComponentsSuite_Teardown( M
_Stg_Component_Delete( data->cellLayout );
_Stg_Component_Delete( data->particleLayout );
_Stg_Component_Delete( data->feMesh );
+ Stg_Class_Delete( data->lcRegister );
Stg_Class_Delete( data->eRegister );
Stg_Class_Delete( data->svRegister );
Stg_Class_Delete( data->mRegister );
More information about the CIG-COMMITS
mailing list