Changeset 5093


Ignore:
Timestamp:
Mar 8, 2015 1:17:35 AM (5 years ago)
Author:
ldelgass
Message:

Add some error messages, unset local temp variables after done in DX to VTK
conversion code.

File:
1 edited

Legend:

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

    r5025 r5093  
    915915            }
    916916            if { [catch { Rappture::DxToVtk $contents } vtkdata] == 0 } {
     917                unset contents
    917918                ReadVtkDataSet $cname $vtkdata
    918919                if 0 {
     
    922923                }
    923924            } else {
    924                 puts stderr "Can't parse dx data: $vtkdata"
     925                unset contents
     926                puts stderr "Can't parse dx data"
    925927            }
    926928            if { $_alwaysConvertDX ||
     
    932934                set _comp2dx($cname) $data
    933935            }
     936            unset data
     937            unset vtkdata
    934938            set _comp2style($cname) [$_field get $cname.style]
    935939            if {[$_field element $cname.flow] != ""} {
     
    13891393    if {[$_xmlobj element $path] == ""} {
    13901394        # Unknown mesh designated.
     1395        puts stderr "ERROR: Unknown mesh \"$path\""
    13911396        return 0
    13921397    }
     
    15911596        $v set [$_field get $cname.values]
    15921597        if { [$v length] == 0 } {
     1598            puts stderr "ERROR: No field values"
    15931599            return 0
    15941600        }
Note: See TracChangeset for help on using the changeset viewer.