[cig-commits] commit: Found some more places where an FeVariable sync

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


changeset:   9:cc120fc163d4
user:        LukeHodkinson
date:        Tue May 22 03:17:41 2007 +0000
files:       DrawingObjects/src/FeVariableSurface.c DrawingObjects/src/Isosurface.c DrawingObjects/src/VectorArrowCrossSection.c
description:
Found some more places where an FeVariable sync
is required.


diff -r b5469c3eeb67 -r cc120fc163d4 DrawingObjects/src/FeVariableSurface.c
--- a/DrawingObjects/src/FeVariableSurface.c	Mon May 21 22:10:05 2007 +0000
+++ b/DrawingObjects/src/FeVariableSurface.c	Tue May 22 03:17:41 2007 +0000
@@ -39,7 +39,7 @@
 *+		Patrick Sunter
 *+		Greg Watson
 *+
-** $Id: FeVariableSurface.c 686 2007-04-27 06:24:08Z LukeHodkinson $
+** $Id: FeVariableSurface.c 694 2007-05-22 03:17:41Z LukeHodkinson $
 ** 
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
@@ -232,6 +232,7 @@ void _lucFeVariableSurface_BuildDisplayL
 	double                         nodeValue;
 	double                         height;
 
+	FeVariable_SyncShadowValues( feVariable );
 
 	/* Give option to draw surface as wireframe */
 	if (self->wireframe) 
diff -r b5469c3eeb67 -r cc120fc163d4 DrawingObjects/src/Isosurface.c
--- a/DrawingObjects/src/Isosurface.c	Mon May 21 22:10:05 2007 +0000
+++ b/DrawingObjects/src/Isosurface.c	Tue May 22 03:17:41 2007 +0000
@@ -39,13 +39,14 @@
 *+		Patrick Sunter
 *+		Greg Watson
 *+
-** $Id: Isosurface.c 628 2006-10-12 08:23:07Z SteveQuenette $
+** $Id: Isosurface.c 694 2007-05-22 03:17:41Z LukeHodkinson $
 ** 
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
 
 #include <mpi.h>
 #include <StGermain/StGermain.h>
+#include <StgFEM/StgFEM.h>
 
 #include <glucifer/Base/Base.h>
 #include <glucifer/RenderingEngines/RenderingEngines.h>
@@ -251,6 +252,8 @@ void _lucIsosurface_Setup( void* drawing
 	Coord                    max;
 	Dimension_Index          dim             = context->dim;
 
+	FeVariable_SyncShadowValues( self->isosurfaceField );
+
 	/* Initialise Variables */
 	self->triangleCount = 0;
 	nx = self->resolution[ I_AXIS ];
@@ -340,6 +343,11 @@ void _lucIsosurface_Draw( void* drawingO
 	XYZ                      fudgeFactor   = { 0.0, 0.0, 0.0 };
 	Index                    dof_I;
 
+	FeVariable_SyncShadowValues( self->isosurfaceField );
+	if( colourField )
+		FeVariable_SyncShadowValues( colourField );
+	if( self->maskField )
+		FeVariable_SyncShadowValues( self->maskField );
 
 	/* Calibrate Colour Map using Colour Variable */
 	if ( colourMap && colourField ) {
@@ -376,6 +384,11 @@ void _lucIsosurface_BuildDisplayList( vo
 	XYZ                      fudgeFactor   = { 0.0, 0.0, 0.0 };
 	Index                    dof_I;
 
+	FeVariable_SyncShadowValues( self->isosurfaceField );
+	if( colourField )
+		FeVariable_SyncShadowValues( colourField );
+	if( maskField )
+		FeVariable_SyncShadowValues( maskField );
 
 	/* Give option to draw surface as wireframe */
 	if (self->wireframe) 
diff -r b5469c3eeb67 -r cc120fc163d4 DrawingObjects/src/VectorArrowCrossSection.c
--- a/DrawingObjects/src/VectorArrowCrossSection.c	Mon May 21 22:10:05 2007 +0000
+++ b/DrawingObjects/src/VectorArrowCrossSection.c	Tue May 22 03:17:41 2007 +0000
@@ -39,13 +39,14 @@
 *+		Patrick Sunter
 *+		Greg Watson
 *+
-** $Id: VectorArrowCrossSection.c 665 2007-02-27 07:10:48Z JulianGiordani $
+** $Id: VectorArrowCrossSection.c 694 2007-05-22 03:17:41Z LukeHodkinson $
 ** 
 **~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
 
 
 #include <mpi.h>
 #include <StGermain/StGermain.h>
+#include <StgFEM/StgFEM.h>
 
 #include <glucifer/Base/Base.h>
 #include <glucifer/RenderingEngines/RenderingEngines.h>
@@ -275,6 +276,8 @@ void _lucVectorArrowCrossSection_DrawCro
 	Journal_DPrintf( self->debugStream, "In %s():\n", __func__ );
 	Stream_Indent( self->debugStream );
 
+	FeVariable_SyncShadowValues( vectorVariable );
+
 	if ( True == self->dynamicRange ) {
 		scaleValue = 1 / FieldVariable_GetMaxGlobalFieldMagnitude( vectorVariable );
 		Journal_DPrintf( self->debugStream, "Dynamic range enabled -> scale value set to "



More information about the CIG-COMMITS mailing list