source: trunk/examples/zoo/phase/phase.tcl @ 3721

Last change on this file since 3721 was 3177, checked in by mmc, 12 years ago

Updated all of the copyright notices to reference the transfer to
the new HUBzero Foundation, LLC.

File size: 855 bytes
RevLine 
[72]1# ----------------------------------------------------------------------
[115]2#  EXAMPLE: Rappture <phase> elements
[72]3# ======================================================================
4#  AUTHOR:  Michael McLennan, Purdue University
[3177]5#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
[115]6#
7#  See the file "license.terms" for information on usage and
8#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
[72]9# ======================================================================
10package require Rappture
11
12# open the XML file containing the run parameters
13set driver [Rappture::library [lindex $argv 0]]
14
15set s1 [$driver get input.phase(one).(first).current]
16set s2 [$driver get input.phase(two).(second).current]
17
18$driver put output.log "first = $s1\nsecond= $s2"
19
20# save the updated XML describing the run...
21Rappture::result $driver
22exit 0
Note: See TracBrowser for help on using the repository browser.