- jwebb's home page
- Posts
- 2019
- 2018
- 2017
- 2016
- 2015
- 2014
- 2013
- November (1)
- October (1)
- September (1)
- July (1)
- June (1)
- April (1)
- March (3)
- February (1)
- January (1)
- 2012
- 2011
- December (2)
- September (3)
- August (5)
- July (6)
- June (6)
- May (1)
- April (5)
- March (5)
- February (2)
- January (2)
- 2010
- December (3)
- October (3)
- September (2)
- August (2)
- June (2)
- May (4)
- April (4)
- March (2)
- February (4)
- January (10)
- 2009
- 2008
- 2007
- 2006
- July (1)
- My blog
- Post new blog entry
- All blogs
HOWTO: Parse DETP command in geometry.g
Warning: you are entering expert territory here...
geometry.g is the module responsible for configuring geometries w/in an interactive version of starsim. In such an interactive session, one sets up a specific geometry by calling
starsim> DETP geom y2010 [more options]
The y2010 keyword, along with any other keywords in [more options], is parsed in geometry.g. Any keyword which matches a "Case" statement will execute the commands w/in the case statement. The syntax of the case statement is:
Case MATCH {
"mandatory comment line printed when case is evaluated";
command-1;
command-2;
...
command-N;
}
In the event that the keyword is of the form MATCH=value, then the real*4 variable myarg will be assigned value.
Groups:
- jwebb's blog
- Login or register to post comments