| 1 |
tim |
12 |
# Input file for gengetopt --generates cmdline.c and cmdline.h |
| 2 |
|
|
# for parsing command line arguments useing getopt and getoptlong. |
| 3 |
|
|
# gengetopt is available from: |
| 4 |
gezelter |
1871 |
# |
| 5 |
tim |
12 |
# http://www.gnu.org/software/gengetopt/gengetopt.html |
| 6 |
gezelter |
1871 |
# |
| 7 |
|
|
# invoke with the following two commands: |
| 8 |
|
|
# gengetopt < Dump2XYZ.ggo --file-name=Dump2XYZCmd --unamed-opts |
| 9 |
|
|
# mv Dump2XYZCmd.c Dump2XYZCmd.cpp |
| 10 |
|
|
|
| 11 |
tim |
12 |
package "Dump2XYZ" |
| 12 |
gezelter |
1871 |
version "1.0" |
| 13 |
tim |
12 |
|
| 14 |
|
|
# Options |
| 15 |
gezelter |
1456 |
option "input" i "input dump file" string typestr="filename" yes |
| 16 |
tim |
12 |
option "output" o "output file name" string typestr="filename" no |
| 17 |
|
|
option "frame" n "print every n frame" int default="1" no |
| 18 |
|
|
option "water" w "skip the the waters" flag off |
| 19 |
|
|
option "periodicBox" m "map to the periodic box" flag off |
| 20 |
|
|
option "zconstraint" z "replace the atom types of zconstraint molecules" flag off |
| 21 |
|
|
option "rigidbody" r "add a pseudo COM atom to rigidbody" flag off |
| 22 |
|
|
option "watertype" t "replace the atom type of water model" flag on |
| 23 |
gezelter |
1456 |
option "selection" s "general selection syntax" string typestr="selection script" no |
| 24 |
|
|
option "originsele" - "select origin" string typestr="selection script" no |
| 25 |
tim |
369 |
option "refsele" - "select reference" string typestr="selection script" no |
| 26 |
tim |
12 |
option "repeatX" - "The number of images to repeat in the x direction" int default="0" no |
| 27 |
|
|
option "repeatY" - "The number of images to repeat in the y direction" int default="0" no |
| 28 |
|
|
option "repeatZ" - "The number of images to repeat in the z direction" int default="0" no |
| 29 |
gezelter |
1456 |
option "basetype" b "Convert to base atom type" flag off |
| 30 |
|
|
option "velocities" v "Print velocities in xyz file" flag off |
| 31 |
|
|
option "forces" f "Print forces xyz file" flag off |
| 32 |
|
|
option "vectors" u "Print vectors (dipoles, etc) in xyz file" flag off |
| 33 |
|
|
option "charges" c "Print charges in xyz file" flag off |
| 34 |
gezelter |
1871 |
option "efield" e "Print electric field vector in xyz file" flag off |