[cig-commits] r7754 - mc/3D/CitcomS/branches/compressible/visual

tan2 at geodynamics.org tan2 at geodynamics.org
Thu Jul 26 15:03:29 PDT 2007


Author: tan2
Date: 2007-07-26 15:03:09 -0700 (Thu, 26 Jul 2007)
New Revision: 7754

Modified:
   mc/3D/CitcomS/branches/compressible/visual/dxgeneral.py
Log:
Fixed a bug in ordering of mesh nodes. The bug was introduced in svn r6510.

Modified: mc/3D/CitcomS/branches/compressible/visual/dxgeneral.py
===================================================================
--- mc/3D/CitcomS/branches/compressible/visual/dxgeneral.py	2007-07-26 22:02:43 UTC (rev 7753)
+++ mc/3D/CitcomS/branches/compressible/visual/dxgeneral.py	2007-07-26 22:03:09 UTC (rev 7754)
@@ -117,7 +117,8 @@
         opt_struct.append(struct[opt])
         opt_type.append(type[opt])
 
-    shape_str = ' x '.join([str(x) for x in shape])
+    # swap the order of shape for correct connectivity
+    shape_str = '%d x %d x %d' % (shape[1], shape[0], shape[2])
     opt_field_str = ', '.join(opt_field)
     opt_struct_str = ', '.join(opt_struct)
     opt_type_str = ', '.join(opt_type)



More information about the cig-commits mailing list