[cig-commits] commit: Made the Variable Component more general:

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


changeset:   31:61b6ea00db4a
user:        PatrickSunter
date:        Fri Jun 29 06:59:36 2007 +0000
files:       MaterialPoints/src/MaterialFeVariable.c
description:
Made the Variable Component more general:
 * User can optionally provide an ArraySizeFunc* instead of ArraySizePtr* , when
	dynamic sizes are necessary.
 * MeshVariable now uses this interface.

Importantly, the code now can run Underworld models when compiling in "cautious" mode aain.

Music while doing the more onerous parts of this refactor provided by www.di.fm


diff -r 967beddece30 -r 61b6ea00db4a MaterialPoints/src/MaterialFeVariable.c
--- a/MaterialPoints/src/MaterialFeVariable.c	Thu Jun 28 06:15:39 2007 +0000
+++ b/MaterialPoints/src/MaterialFeVariable.c	Fri Jun 29 06:59:36 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 472 2007-06-07 05:47:49Z LukeHodkinson $
+** $Id: MaterialFeVariable.c 489 2007-06-29 06:59:36Z PatrickSunter $
 **
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
@@ -205,6 +205,7 @@ void _MaterialFeVariable_Build( void* ma
 			tmpName,
 			Variable_DataType_Double, 
 			&self->feMesh->topo->remotes[MT_VERTEX]->nDomains, 
+			NULL,
 			(void**)&self->data, 
 			variable_Register );
 	Memory_Free( tmpName );



More information about the CIG-COMMITS mailing list