1 | # ---------------------------------------------------------------------- |
---|
2 | # EXAMPLE: Rappture <string> elements |
---|
3 | # ====================================================================== |
---|
4 | # AUTHOR: Michael McLennan, 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 value [$driver get input.choice(analysis).current] |
---|
16 | append out "Analysis Choice: $value\n" |
---|
17 | set value [$driver get input.number(trapezoid_top).current] |
---|
18 | append out "Trapezoid Top: $value\n" |
---|
19 | set value [$driver get input.number(substrate_length).current] |
---|
20 | append out "Substrate Length: $value\n" |
---|
21 | set value [$driver get input.number(feature_length).current] |
---|
22 | append out "Feature Length: $value\n" |
---|
23 | set value [$driver get input.number(feature_height).current] |
---|
24 | append out "Feature Height: $value\n" |
---|
25 | set value [$driver get input.string(indeck).current] |
---|
26 | append out "String: $value\n" |
---|
27 | |
---|
28 | $driver put output.string(out).about.label "Echo of inputs" |
---|
29 | $driver put output.string(out).current $out |
---|
30 | |
---|
31 | # save the updated XML describing the run... |
---|
32 | Rappture::result $driver |
---|
33 | exit 0 |
---|