Last change
on this file since 1642 was
1626,
checked in by gah, 15 years ago
|
added periodic element table control
|
File size:
978 bytes
|
Line | |
---|
1 | # ---------------------------------------------------------------------- |
---|
2 | # EXAMPLE: Rappture <periodicelement> element |
---|
3 | # ====================================================================== |
---|
4 | # AUTHOR: Michael McLennan, Purdue University |
---|
5 | # Copyright (c) 2004-2005 Purdue Research Foundation |
---|
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 first [$driver get input.periodicelement(first).current] |
---|
16 | set second [$driver get input.periodicelement(second).current] |
---|
17 | set third [$driver get input.periodicelement(third).current] |
---|
18 | |
---|
19 | $driver put output.log "Elements: |
---|
20 | First: $first |
---|
21 | Second: $second |
---|
22 | Third: $third" |
---|
23 | |
---|
24 | # save the updated XML describing the run... |
---|
25 | Rappture::result $driver |
---|
26 | exit 0 |
---|
Note: See
TracBrowser
for help on using the repository browser.