Ignore:
Timestamp:
Jul 15, 2014, 6:20:04 PM (10 years ago)
Author:
ldelgass
Message:

Cleanups. Remove unused variable, move check for <DX> header to C routine,
don't overwrite _dim written by VTK reader.

File:
1 edited

Legend:

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

    r4493 r4502  
    919919                continue;               # Ignore this component
    920920            }
    921             set vector ""
    922921            if 0 {
    923922                set f [open /tmp/$_path.$cname.dx "w"]
     
    925924                close $f
    926925            }
    927             # This is temporary.  I put a check for this in the DxToVtk
    928             # parser. 
    929             if { [string range $contents  0 3] == "<DX>" } {
    930                 set contents [string range $contents 4 end]
    931             }
    932926            if { [catch { Rappture::DxToVtk $contents } vtkdata] == 0 } {
    933927                ReadVtkDataSet $cname $vtkdata
     928                if 0 {
     929                    set f [open /tmp/$_path.$cname.vtk "w"]
     930                    puts -nonewline $f $vtkdata
     931                    close $f
     932                }
    934933            } else {
    935934                puts stderr "Can't parse dx data: $vtkdata"
    936             }
    937             if 0 {
    938                 set f [open /tmp/$_path.$cname.vtk "w"]
    939                 puts -nonewline $f $vtkdata
    940                 close $f
    941935            }
    942936            if { $_alwaysConvertDX ||
     
    953947                    [Rappture::FlowHints ::\#auto $_field $cname $_units]
    954948            }
    955             set _dim 3
    956949            incr _counter
    957950        } elseif { $type == "dicom"} {
Note: See TracChangeset for help on using the changeset viewer.