Changeset 4423


Ignore:
Timestamp:
Jun 25, 2014 1:11:31 AM (7 years ago)
Author:
ldelgass
Message:

Handle case where no field names exists in fieldlimits method (can happen if
user supplies a VTK file with mesh and no field data).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/field.tcl

    r4417 r4423  
    542542    foreach cname [array names _comp2limits] {
    543543        array set limits $_comp2limits($cname)
    544         foreach fname $_comp2fldName($cname) {
     544        foreach fname [fieldnames $cname] {
    545545            if { ![info exists limits($fname)] } {
    546546                puts stderr "ERROR: field \"$fname\" unknown in \"$cname\""
Note: See TracChangeset for help on using the changeset viewer.