Last change
on this file since 3484 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:
1010 bytes
|
Line | |
---|
1 | # ---------------------------------------------------------------------- |
---|
2 | # EXAMPLE: Rappture <number> elements |
---|
3 | # ====================================================================== |
---|
4 | # AUTHOR: Martim Hunt, Purdue University |
---|
5 | # Copyright (c) 2004-2012 HUBzero Foundation, LLC |
---|
6 | # |
---|
7 | # See the file "license.terms" for information on usage and |
---|
8 | # redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES. |
---|
9 | # ====================================================================== |
---|
10 | package require Rappture |
---|
11 | |
---|
12 | # open the XML file containing the run parameters |
---|
13 | set driver [Rappture::library [lindex $argv 0]] |
---|
14 | |
---|
15 | set n1 [$driver get input.(input1).current] |
---|
16 | set n2 [$driver get input.(input2).current] |
---|
17 | set n3 [$driver get input.(input3).current] |
---|
18 | |
---|
19 | $driver put output.string(out).current "input1=$n1\n" |
---|
20 | $driver put -append yes output.string(out).current "input2=$n2\n" |
---|
21 | $driver put -append yes output.string(out).current "input3=$n3\n" |
---|
22 | |
---|
23 | # save the updated XML describing the run... |
---|
24 | Rappture::result $driver |
---|
25 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.