[cig-commits] r7747 - mc/3D/CitcomS/trunk/visual
tan2 at geodynamics.org
tan2 at geodynamics.org
Wed Jul 25 16:19:21 PDT 2007
Author: tan2
Date: 2007-07-25 16:19:21 -0700 (Wed, 25 Jul 2007)
New Revision: 7747
Modified:
mc/3D/CitcomS/trunk/visual/dxgeneral.py
Log:
Fixed a bug in ordering of mesh nodes. The bug was introduced in svn r6510.
Modified: mc/3D/CitcomS/trunk/visual/dxgeneral.py
===================================================================
--- mc/3D/CitcomS/trunk/visual/dxgeneral.py 2007-07-25 21:27:06 UTC (rev 7746)
+++ mc/3D/CitcomS/trunk/visual/dxgeneral.py 2007-07-25 23:19:21 UTC (rev 7747)
@@ -112,7 +112,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