[cig-commits] r6645 - mc/3D/ellipsis3d/trunk

walter at geodynamics.org walter at geodynamics.org
Mon Apr 23 23:04:38 PDT 2007


Author: walter
Date: 2007-04-23 23:04:37 -0700 (Mon, 23 Apr 2007)
New Revision: 6645

Modified:
   mc/3D/ellipsis3d/trunk/MG_matrix_solver.c
Log:
Change the order of statements to avoid using an uninitialized variables

Modified: mc/3D/ellipsis3d/trunk/MG_matrix_solver.c
===================================================================
--- mc/3D/ellipsis3d/trunk/MG_matrix_solver.c	2007-04-24 06:03:52 UTC (rev 6644)
+++ mc/3D/ellipsis3d/trunk/MG_matrix_solver.c	2007-04-24 06:04:37 UTC (rev 6645)
@@ -600,10 +600,10 @@
     eq6=E->idd[i].doff[6];
     for(j=0;j<max_node;j++) {
       node1=E->Node_map_3[level][i*max_node+j];
-      if(E->NODE[level][node1] & ( OFFSIDE  ))  /* shouldn't happen though */
+      if(node1==0)
 	continue;
 
-      if(node1==0)
+      if(E->NODE[level][node1] & ( OFFSIDE  ))  /* shouldn't happen though */
 	continue;
 
       switch(dofs) {



More information about the cig-commits mailing list