[cig-commits] commit: Rejigged as part of Variable rejigging.

Mercurial hg at geodynamics.org
Mon Feb 1 15:31:09 PST 2010


changeset:   342:41823395df31
branch:      pcu_rejig
user:        JericoRevote
date:        Wed Dec 02 11:32:10 2009 +1100
files:       MaterialPoints/src/MaterialFeVariable.c MaterialPoints/src/SwarmVariableField.c
description:
Rejigged as part of Variable rejigging.


diff -r 608b2fd79d49 -r 41823395df31 MaterialPoints/src/MaterialFeVariable.c
--- a/MaterialPoints/src/MaterialFeVariable.c	Tue Dec 01 13:31:48 2009 +1100
+++ b/MaterialPoints/src/MaterialFeVariable.c	Wed Dec 02 11:32:10 2009 +1100
@@ -168,6 +168,7 @@ void _MaterialFeVariable_Build( void* ma
 	assert( Class_IsSuper( self->feMesh->topo, IGraph ) );
 	self->dataVariable = Variable_NewScalar( 
 		tmpName,
+		(AbstractContext*)self->context,
 		Variable_DataType_Double, 
 		&((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains, 
 		NULL,
diff -r 608b2fd79d49 -r 41823395df31 MaterialPoints/src/SwarmVariableField.c
--- a/MaterialPoints/src/SwarmVariableField.c	Tue Dec 01 13:31:48 2009 +1100
+++ b/MaterialPoints/src/SwarmVariableField.c	Wed Dec 02 11:32:10 2009 +1100
@@ -154,11 +154,12 @@ void _SwarmVariableField_Build( void* sw
 	assert( Class_IsSuper( self->feMesh->topo, IGraph ) );
 	tmpName = Stg_Object_AppendSuffix( self, "DataVariable" );
 	self->dataVariable = Variable_NewScalar( tmpName,
-		       				 Variable_DataType_Double,
-						 &nDomainVerts,
-						 NULL,
-						 (void**)&self->data,
-						 self->variable_Register );
+		(AbstractContext*)self->context,
+		Variable_DataType_Double,
+		&nDomainVerts,
+		NULL,
+		(void**)&self->data,
+		self->variable_Register );
 	Memory_Free( tmpName );
 	self->fieldComponentCount = 1;
 



More information about the CIG-COMMITS mailing list