Changeset 4390
- Timestamp:
- Jun 17, 2014, 1:32:05 PM (10 years ago)
- Location:
- trunk/gui/scripts
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/field.tcl
r4389 r4390 1558 1558 set numComponentsPerPoint [numComponents $cname] 1559 1559 set numPoints [$mesh numpoints] 1560 if { ($numPoints * $numComponentsPerPoint) != $numFieldValues } { 1561 puts stderr "ERROR: Number of points in mesh and field values don't agree" 1560 set numExpectedPoints [expr $numPoints * $numComponentsPerPoint] 1561 if { $numExpectedPoints != $numFieldValues } { 1562 puts stderr "ERROR: Number of points in mesh ($numExpectedPoints) and number of field values ($numFieldValues) don't agree" 1562 1563 return 0 1563 1564 } … … 1593 1594 set numComponentsPerPoint [numComponents $cname] 1594 1595 set numPoints [$mesh numpoints] 1595 if { ($numPoints * $numComponentsPerPoint) != $numFieldValues } { 1596 puts stderr "ERROR: Number of points in mesh and field values don't agree" 1596 set numExpectedPoints [expr $numPoints * $numComponentsPerPoint] 1597 if { $numExpectedPoints != $numFieldValues } { 1598 puts stderr "ERROR: Number of points in mesh ($numExpectedPoints) and number of field values ($numFieldValues) don't agree" 1597 1599 return 0 1598 1600 } -
trunk/gui/scripts/mesh.tcl
r4259 r4390 482 482 $reader Update 483 483 set output [$reader GetOutput] 484 set _numPoints [$output GetNumberOfPoints] 485 set _numCells [$output GetNumberOfCells] 484 486 foreach { xmin xmax ymin ymax zmin zmax } [$output GetBounds] break 485 487 set _limits(x) [list $xmin $xmax]
Note: See TracChangeset
for help on using the changeset viewer.