[cig-commits] commit: Preparing the meshing system for AMR.

Mercurial hg at geodynamics.org
Mon Nov 24 11:30:35 PST 2008


changeset:   43:49a70f39a59e
user:        LukeHodkinson
date:        Tue Sep 25 07:55:04 2007 +0000
files:       MaterialPoints/src/MaterialFeVariable.c
description:
Preparing the meshing system for AMR.


diff -r 67f9461e1738 -r 49a70f39a59e MaterialPoints/src/MaterialFeVariable.c
--- a/MaterialPoints/src/MaterialFeVariable.c	Fri Sep 21 04:46:00 2007 +0000
+++ b/MaterialPoints/src/MaterialFeVariable.c	Tue Sep 25 07:55:04 2007 +0000
@@ -38,7 +38,7 @@
 **  License along with this library; if not, write to the Free Software
 **  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 **
-** $Id: MaterialFeVariable.c 489 2007-06-29 06:59:36Z PatrickSunter $
+** $Id: MaterialFeVariable.c 513 2007-09-25 07:55:04Z LukeHodkinson $
 **
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
@@ -201,10 +201,11 @@ void _MaterialFeVariable_Build( void* ma
 		variable_Register = swarm->swarmVariable_Register->variable_Register;
 
 	tmpName = Stg_Object_AppendSuffix( self, "DataVariable" );
+	assert( Class_IsSuper( self->feMesh->topo, IGraph ) );
 	self->dataVariable = Variable_NewScalar( 
 			tmpName,
 			Variable_DataType_Double, 
-			&self->feMesh->topo->remotes[MT_VERTEX]->nDomains, 
+			&((IGraph*)self->feMesh->topo)->remotes[MT_VERTEX]->nDomains, 
 			NULL,
 			(void**)&self->data, 
 			variable_Register );
@@ -212,7 +213,8 @@ void _MaterialFeVariable_Build( void* ma
 	self->fieldComponentCount = 1;
 	
 	tmpName = Stg_Object_AppendSuffix( self, "DofLayout" );
-	self->dofLayout = DofLayout_New( tmpName, variable_Register, self->feMesh->topo->remotes[MT_VERTEX]->nDomains, NULL );
+	self->dofLayout = DofLayout_New( tmpName, 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;



More information about the CIG-COMMITS mailing list