[cig-commits] commit: Rejigged as part of DofLayout updates.
Mercurial
hg at geodynamics.org
Mon Feb 1 15:30:50 PST 2010
changeset: 326:a077add145be
branch: pcu_rejig
parent: 324:f2c850f16b72
user: JericoRevote
date: Mon Nov 23 18:07:54 2009 +1100
files: MaterialPoints/src/MaterialFeVariable.c MaterialPoints/src/SwarmVariableField.c
description:
Rejigged as part of DofLayout updates.
diff -r f2c850f16b72 -r a077add145be MaterialPoints/src/MaterialFeVariable.c
--- a/MaterialPoints/src/MaterialFeVariable.c Fri Nov 20 15:58:05 2009 +1100
+++ b/MaterialPoints/src/MaterialFeVariable.c Mon Nov 23 18:07:54 2009 +1100
@@ -202,18 +202,17 @@ void _MaterialFeVariable_Build( void* ma
tmpName = Stg_Object_AppendSuffix( self, "DataVariable" );
assert( Class_IsSuper( self->feMesh->topo, IGraph ) );
self->dataVariable = Variable_NewScalar(
- tmpName,
- Variable_DataType_Double,
- &((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains,
- NULL,
- (void**)&self->data,
- variable_Register );
+ tmpName,
+ Variable_DataType_Double,
+ &((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains,
+ NULL,
+ (void**)&self->data,
+ variable_Register );
Memory_Free( tmpName );
self->fieldComponentCount = 1;
tmpName = Stg_Object_AppendSuffix( self, "DofLayout" );
- self->dofLayout = DofLayout_New( tmpName, variable_Register,
- ((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains, NULL );
+ self->dofLayout = DofLayout_New( tmpName, self->context, variable_Register, ((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains, NULL );
DofLayout_AddAllFromVariableArray( self->dofLayout, 1, &self->dataVariable );
Memory_Free( tmpName );
self->eqNum->dofLayout = self->dofLayout;
diff -r f2c850f16b72 -r a077add145be MaterialPoints/src/SwarmVariableField.c
--- a/MaterialPoints/src/SwarmVariableField.c Fri Nov 20 15:58:05 2009 +1100
+++ b/MaterialPoints/src/SwarmVariableField.c Mon Nov 23 18:07:54 2009 +1100
@@ -201,7 +201,7 @@ void _SwarmVariableField_Build( void* sw
self->fieldComponentCount = 1;
tmpName = Stg_Object_AppendSuffix( self, "DofLayout" );
- self->dofLayout = DofLayout_New( tmpName, self->variable_Register, 0, self->feMesh );
+ self->dofLayout = DofLayout_New( tmpName, self->context, self->variable_Register, 0, self->feMesh );
/* must build before adding the variable to the dof layout, dave. 04.10.07 */
//Stg_Component_Build( self->dofLayout, data, False );
More information about the CIG-COMMITS
mailing list