[cig-commits] commit: Fix some compiler warnings and make an array big enough to fit all 27 nodes of a Q2 3D element

Mercurial hg at geodynamics.org
Thu Sep 29 15:11:09 PDT 2011


changeset:   872:f5bd1cb7d3f6
tag:         tip
user:        Walter Landry <wlandry at caltech.edu>
date:        Thu Sep 29 15:09:34 2011 -0700
files:       Utils/src/BaseRecoveryFeVar.cxx
description:
Fix some compiler warnings and make an array big enough to fit all 27 nodes of a Q2 3D element


diff -r 9808789b007b -r f5bd1cb7d3f6 Utils/src/BaseRecoveryFeVar.cxx
--- a/Utils/src/BaseRecoveryFeVar.cxx	Thu Sep 29 01:09:20 2011 -0700
+++ b/Utils/src/BaseRecoveryFeVar.cxx	Thu Sep 29 15:09:34 2011 -0700
@@ -321,11 +321,10 @@ void _BaseRecoveryFeVar_GetValueInElemen
 	FeMesh             *mesh = self->feMesh;
 	ElementType        *elementType = NULL;
 	IArray*            inc  = self->inc;
-	double             valueAtNode[8][9];  /* TODO: make non static */
-	double             Ni[8]; 
-	int nNodes, *nodes, node_I, order, dof_I, dofThatExist;
+	double             valueAtNode[27][9];  /* TODO: make non static */
+	double             Ni[27]; 
+	int nNodes, *nodes, node_I, dof_I, dofThatExist;
 
-	order = self->orderOfInterpolation;
 	dofThatExist = self->fieldComponentCount;
 
 	/* Get nodes in element lEl_I */
@@ -356,7 +355,7 @@ void _BaseRecoveryFeVar_GetValueInElemen
 	IArray*              inc  = self->inc;
 	double               globalCoord[3];
 	double               coeff[50]; 
-	int nNodes, *nodes, order, dof_I, dofThatExist;
+	int order, dof_I, dofThatExist;
 
 	order = self->orderOfInterpolation;
 	dofThatExist = self->fieldComponentCount;
@@ -364,8 +363,6 @@ void _BaseRecoveryFeVar_GetValueInElemen
 
 	/* Get nodes in element lEl_I */
 	FeMesh_GetElementNodes( mesh, lEl_I, self->inc );
-	nNodes = IArray_GetSize( inc );
-	nodes = IArray_GetPtr( inc );
 
 	/** Get the coeffieients of each node **/
 	_FeVariable_InterpolateNodeValuesToElLocalCoord( self, lEl_I, xi, coeff );



More information about the CIG-COMMITS mailing list