[cig-commits] commit: Thought I had committed this already, but anyway:

Mercurial hg at geodynamics.org
Mon Nov 24 11:28:50 PST 2008


changeset:   13:6b52e7055da8
user:        PatrickSunter
date:        Fri Jun 29 00:43:14 2007 +0000
files:       DrawingObjects/src/FieldVariableBorder.c
description:
Thought I had committed this already, but anyway:
 This fixed a bug wth FieldVariableBorder d.o.s in parallel - see Trac ticket #9.


diff -r e390b30a66d8 -r 6b52e7055da8 DrawingObjects/src/FieldVariableBorder.c
--- a/DrawingObjects/src/FieldVariableBorder.c	Fri Jun 01 02:29:32 2007 +0000
+++ b/DrawingObjects/src/FieldVariableBorder.c	Fri Jun 29 00:43:14 2007 +0000
@@ -39,7 +39,7 @@
 *+		Patrick Sunter
 *+		Greg Watson
 *+
-** $Id: FieldVariableBorder.c 628 2006-10-12 08:23:07Z SteveQuenette $
+** $Id: FieldVariableBorder.c 702 2007-06-29 00:43:14Z PatrickSunter $
 ** 
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
@@ -213,6 +213,10 @@ void _lucFieldVariableBorder_BuildDispla
 	Coord                    min;
 	Coord                    max;
 
+	/* THis needs to be first so all processors call it - collective comms */
+	/* Grab values from field variable */
+	FieldVariable_GetMinAndMaxGlobalCoords( field, min, max );
+
 	if ( context->rank != MASTER )
 		return;
 
@@ -227,8 +231,6 @@ void _lucFieldVariableBorder_BuildDispla
 	lucColour_SetOpenGLColour( &self->colour );
 	glLineWidth( self->lineWidth );
 
-	/* Grab values from field variable */
-	FieldVariable_GetMinAndMaxGlobalCoords( field, min, max );
 	
 	if (dim == 2) 
 		glRectd( min[ I_AXIS ], min[ J_AXIS ], max[ I_AXIS ], max[ J_AXIS ] );



More information about the CIG-COMMITS mailing list