Changeset 3033 for trunk/gui/scripts


Ignore:
Timestamp:
Jun 12, 2012, 6:04:50 PM (12 years ago)
Author:
mmc
Message:

Removed the output.load and output.include directives from the analyzer.
This functionality wasn't being used, and it's now depricated.

File:
1 edited

Legend:

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

    r3030 r3033  
    496496    if {[$_tool xml get tool.analyzer] == "last"} {
    497497        clear
    498     }
    499 
    500     # look for all output.load children and load them first
    501     # each run.xml is loaded as a previous simulation.
    502     foreach item [$xmlobj children -type run output.load] {
    503         set loadfile [$xmlobj get output.load.$item]
    504         set loadobj [Rappture::library $loadfile]
    505         load $loadobj
    506     }
    507 
    508     foreach item [$xmlobj children -type run output.include] {
    509         set id [$xmlobj element -as id output.include.$item]
    510         set inclfile [$xmlobj get output.include.$item]
    511         set inclobj [Rappture::library $inclfile]
    512         foreach c [$inclobj children output] {
    513             switch -glob -- $c {
    514                 # We don't want to include these tags.
    515                 include* - time* - status* - user* {
    516                     continue
    517                 }
    518                 default {
    519                     set oldid [$inclobj element -as id output.$c]
    520                     set oldtype [$inclobj element -as type output.$c]
    521                     set newcomp "$oldtype\($id-$oldid\)"
    522                     $xmlobj copy output.$newcomp from $inclobj output.$c
    523                 }
    524             }
    525         }
    526498    }
    527499
Note: See TracChangeset for help on using the changeset viewer.