Ignore:
Timestamp:
Feb 17, 2015, 5:49:36 PM (10 years ago)
Author:
mmh
Message:

puq integration snap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/uq/gui/scripts/analyzer.tcl

    r4512 r5029  
    1 # -*- mode: tcl; indent-tabs-mode: nil -*- 
     1# -*- mode: tcl; indent-tabs-mode: nil -*-
    22# ----------------------------------------------------------------------
    33#  COMPONENT: analyzer - output area for Rappture
     
    5050    itk_option define -notebookpage notebookPage NotebookPage ""
    5151
    52     constructor {tool args} { 
    53         # defined below 
    54     }
    55     destructor { 
    56         # defined below 
     52    constructor {tool args} {
     53        # defined below
     54    }
     55    destructor {
     56        # defined below
    5757    }
    5858
     
    103103itcl::body Rappture::Analyzer::constructor {tool args} {
    104104    set _tool $tool
    105 
     105    puts "Analyzer init"
    106106    # use this to store all simulation results
    107107    set _resultset [Rappture::ResultSet ::\#auto]
     
    391391# ----------------------------------------------------------------------
    392392itcl::body Rappture::Analyzer::simulate {args} {
     393    puts "simulate $args"
    393394    if {$args == "-ifneeded"} {
    394395        # check to see if simulation is really needed
     
    401402        }
    402403        set args ""
    403     } 
    404 
     404    }
     405    puts "simulation needed"
    405406    # simulation is needed -- go to simulation page
    406407    $itk_component(notebook) current simulate
     
    423424
    424425    # execute the job
     426    puts "$_tool run $args"
     427
    425428    foreach {status result} [eval $_tool run $args] break
    426429
     
    443446    if {$status != 0} {
    444447        $itk_component(runinfo) configure -state normal
    445         # Don't erase program error messages. 
     448        # Don't erase program error messages.
    446449        # $itk_component(runinfo) delete 1.0 end
    447450        $itk_component(runinfo) insert end "\n\nProblem launching job:\n\n" text
     
    585588                    $popup activate $widget below
    586589                } else {
    587                     download now $widget 
     590                    download now $widget
    588591                }
    589592            } else {
     
    12821285            set frame ${sequence}.element($frameNum)
    12831286            $xmlobj put ${frame}.index $frameNum
    1284            
     1287
    12851288            set molecule ${frame}.structure.components.molecule
    12861289            $xmlobj put ${molecule}.pdb $contents
     
    13251328                set frame ${sequence}.element($frameNum)
    13261329                $xmlobj put ${frame}.index $frameNum
    1327                
     1330
    13281331                set molecule ${frame}.structure.components.molecule
    13291332                $xmlobj put ${molecule}.lammps $frameContents
    13301333                $xmlobj put ${molecule}.lammpstypemap $typemap
    1331                
     1334
    13321335                incr frameNum
    13331336                set frameContents ""
     
    13451348        set frame ${sequence}.element($frameNum)
    13461349        $xmlobj put ${frame}.index $frameNum
    1347        
     1350
    13481351        set molecule ${frame}.structure.components.molecule
    13491352        $xmlobj put ${molecule}.lammps $frameContents
     
    13551358# USAGE: _trajToSequence <xmlobj> ?<path>?
    13561359#
    1357 #       Check for PDB and LAMMPS trajectories in molecule data and rewrite 
    1358 #       the individual models as a sequence of molecules.  Used internally 
     1360#       Check for PDB and LAMMPS trajectories in molecule data and rewrite
     1361#       the individual models as a sequence of molecules.  Used internally
    13591362#       to detect any molecule output elements that contain trajectory data.
    13601363#       Trajectories will be converted into sequences of individual molecules.
    13611364#       All other elements will be unaffected. Scans the entire xml tree if a
    1362 #       starting path is not specified. 
     1365#       starting path is not specified.
    13631366#
    13641367# ----------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.