Changeset 745


Ignore:
Timestamp:
May 18, 2007, 11:55:33 AM (17 years ago)
Author:
mmc
Message:

Fix for a problem loading structures that showed up in the MOSFET tool.
Complex structures were taking really long to run because "reset" kept
getting called again and again. It is now called once, after idle.

File:
1 edited

Legend:

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

    r733 r745  
    5151
    5252    public method simulate {args}
    53     public method reset {}
     53    public method reset {{when -eventually}}
    5454    public method load {file}
    5555    public method clear {}
     
    406406
    407407# ----------------------------------------------------------------------
    408 # USAGE: reset
     408# USAGE: reset ?-eventually|-now?
    409409#
    410410# Used to reset the analyzer whenever the input to a simulation has
     
    413413# to "auto", the simulation is invoked immediately.
    414414# ----------------------------------------------------------------------
    415 itcl::body Rappture::Analyzer::reset {} {
     415itcl::body Rappture::Analyzer::reset {{when -eventually}} {
     416    if {$when == "-eventually"} {
     417        after cancel [list catch [itcl::code $this reset -now]]
     418        after idle [list catch [itcl::code $this reset -now]]
     419        return
     420    }
     421
    416422    # check to see if simulation is really needed
    417423    $_tool sync
Note: See TracChangeset for help on using the changeset viewer.