[cig-commits] r5686 - in long/3D/Gale/trunk: .
src/StgFEM/Discretisation/src
walter at geodynamics.org
walter at geodynamics.org
Fri Jan 5 13:50:11 PST 2007
Author: walter
Date: 2007-01-05 13:50:11 -0800 (Fri, 05 Jan 2007)
New Revision: 5686
Modified:
long/3D/Gale/trunk/
long/3D/Gale/trunk/src/StgFEM/Discretisation/src/FeVariable.c
Log:
r1281 at earth: boo | 2006-12-22 12:45:22 -0800
Make third coordinate for 2D output always 0.
Property changes on: long/3D/Gale/trunk
___________________________________________________________________
Name: svk:merge
- 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:1279
+ 3a629746-de10-0410-b17b-fd6ecaaa963e:/cig:1281
Modified: long/3D/Gale/trunk/src/StgFEM/Discretisation/src/FeVariable.c
===================================================================
--- long/3D/Gale/trunk/src/StgFEM/Discretisation/src/FeVariable.c 2007-01-05 19:39:42 UTC (rev 5685)
+++ long/3D/Gale/trunk/src/StgFEM/Discretisation/src/FeVariable.c 2007-01-05 21:50:11 UTC (rev 5686)
@@ -1859,7 +1859,13 @@
gNode_I = FeMesh_NodeDomainToGlobal( self->feMesh, lNode_I );
fprintf( outputFile, "%u ", gNode_I );
coord = Mesh_GetVertex( self->feMesh, lNode_I );
- fprintf( outputFile, "%.15g %.15g %.15g ", coord[0], coord[1], coord[2] );
+ if(self->dim==2)
+ fprintf( outputFile, "%.15g %.15g 0 ", coord[0],
+ coord[1]);
+ else
+ fprintf( outputFile, "%.15g %.15g %.15g ", coord[0],
+ coord[1], coord[2] );
+
FeVariable_GetValueAtNode( self, lNode_I, variableValues );
for ( dof_I = 0; dof_I < dofAtEachNodeCount; dof_I++ ) {
fprintf( outputFile, "%.15g ", variableValues[dof_I] );
More information about the cig-commits
mailing list