Changeset 4387 for branches/1.3/gui/scripts/field.tcl
- Timestamp:
- Jun 16, 2014, 10:42:46 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3/gui/scripts/field.tcl
r4204 r4387 1068 1068 # numComponents -- 1069 1069 # 1070 # Returns ifthe number of components in the field component.1070 # Returns the number of components in the field component. 1071 1071 # 1072 1072 itcl::body Rappture::Field::numComponents {cname} { … … 1539 1539 } 1540 1540 } 1541 if { $dim 1541 if { $dim != 3 } { 1542 1542 set _dim $dim 1543 1543 } … … 1581 1581 set _viewer "contour" 1582 1582 } 1583 set numFieldValues [$v length] 1584 set numComponentsPerPoint [numComponents $cname] 1585 set numPoints [$mesh numpoints] 1586 if { ($numPoints * $numComponentsPerPoint) != $numFieldValues } { 1587 puts stderr "ERROR: Number of points in mesh and field values don't agree" 1588 return 0 1589 } 1590 1583 1591 set _comp2dims($cname) "[$mesh dimensions]D" 1584 1592 set _comp2mesh($cname) [list $mesh $v] … … 1603 1611 return 0 1604 1612 } 1613 set numFieldValues [$v length] 1614 set numComponentsPerPoint [numComponents $cname] 1615 set numPoints [$mesh numpoints] 1616 if { ($numPoints * $numComponentsPerPoint) != $numFieldValues } { 1617 puts stderr "ERROR: Number of points in mesh and field values don't agree" 1618 return 0 1619 } 1605 1620 set _comp2dims($cname) "[$mesh dimensions]D" 1606 1621 set _comp2mesh($cname) [list $mesh $v]
Note: See TracChangeset
for help on using the changeset viewer.