[cig-commits] commit: move some declarations to be friendly to C89
Mercurial
hg at geodynamics.org
Fri Mar 12 07:04:19 PST 2010
changeset: 823:4f4d45c3bade
user: Walter Landry <wlandry at caltech.edu>
date: Wed Mar 10 14:51:55 2010 -0800
files: plugins/SurfaceProcess/SurfaceProcess.c
description:
move some declarations to be friendly to C89
diff -r ff8f0e63404f -r 4f4d45c3bade plugins/SurfaceProcess/SurfaceProcess.c
--- a/plugins/SurfaceProcess/SurfaceProcess.c Mon Mar 01 15:25:08 2010 -0800
+++ b/plugins/SurfaceProcess/SurfaceProcess.c Wed Mar 10 14:51:55 2010 -0800
@@ -64,6 +64,8 @@ void Underworld_SurfaceProcess_Execute(
Grid* grid;
Mesh* mesh;
unsigned nDims;
+ Node_LocalIndex n_i;
+ unsigned nNodes;
assert( spCtx );
@@ -82,15 +84,11 @@ void Underworld_SurfaceProcess_Execute(
if( nDims != 2 )
abort();
- Node_LocalIndex n_i;
- unsigned nNodes;
-
- IJK ijk;
-
nNodes = FeMesh_GetNodeLocalSize( mesh);
for( n_i = 0; n_i < nNodes; n_i++ )
{
+ IJK ijk;
RegularMeshUtils_Node_1DTo3D
( mesh, Mesh_DomainToGlobal( mesh, MT_VERTEX, n_i ), ijk );
More information about the CIG-COMMITS
mailing list