[cig-commits] commit:

Mercurial hg at geodynamics.org
Mon Nov 24 11:58:39 PST 2008


changeset:   67:c266fd3c057f
user:        LukeHodkinson
date:        Mon Mar 31 05:40:13 2008 +0000
files:       Swarm/src/SwarmClass.c
description:
Updates to make it work with VMake.


diff -r 4626dfedc2b1 -r c266fd3c057f Swarm/src/SwarmClass.c
--- a/Swarm/src/SwarmClass.c	Mon Mar 31 05:28:57 2008 +0000
+++ b/Swarm/src/SwarmClass.c	Mon Mar 31 05:40:13 2008 +0000
@@ -64,6 +64,9 @@
 #include <stdlib.h>
 #include <string.h>
 #include <assert.h>
+
+
+extern void dump_discretisation( Mesh *mesh, Swarm *swarm, const char *filename );
 
 
 const Type Swarm_Type = "Swarm";
@@ -978,7 +981,16 @@ void Swarm_UpdateAllParticleOwners( void
 		}
 	}
 
-	Stream_UnIndentBranch( Swarm_Debug );	
+	Stream_UnIndentBranch( Swarm_Debug );
+
+	/* DEBUG */
+	if( !strcmp( self->cellLayout->type, "ElementCellLayout" ) ) {
+	   static int iter = 0;
+	   char filename[12];
+
+	   sprintf( filename, "disc-%d.h5", iter++ );
+	   dump_discretisation( ((ElementCellLayout*)self->cellLayout)->mesh, self, filename );
+	}
 }
 
 



More information about the CIG-COMMITS mailing list