developers:abivars.yml
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
developers:abivars.yml [2017/07/31 19:47] – [Strings] Xavier Gonze | developers:abivars.yml [2019/10/24 00:42] (current) – removed Matteo Giantomassi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Specifications for the abinit_vars.yml file ====== | ||
- | |||
- | As values in the ~abinit/ | ||
- | |||
- | |||
- | ===== !variable ===== | ||
- | |||
- | Is the type that contains the other fields. | ||
- | * abivarname : the name of the variable. Note that the name for input variables of the executables anaddb, aim and optic is always finished with @anaddb, @aim or @optic. | ||
- | * characteristics | ||
- | * commentdefault | ||
- | * commentdims | ||
- | * defaultval | ||
- | * dimensions | ||
- | * excludes | ||
- | * menemonics | ||
- | * requires | ||
- | * text | ||
- | * topics | ||
- | * varset | ||
- | * vartype : to be chosen among integer, real or string | ||
- | |||
- | |||
- | ===== !multiplevalue ===== | ||
- | |||
- | This is the equivalent to the X*Y syntax in fortran. | ||
- | |||
- | < | ||
- | X*Y | ||
- | </ | ||
- | |||
- | will become | ||
- | |||
- | < | ||
- | !multiplevalue | ||
- | number : X | ||
- | value : Y | ||
- | </ | ||
- | |||
- | If X is null, it means that you want to do *Y (all Y) | ||
- | |||
- | ===== !range ===== | ||
- | |||
- | < | ||
- | !range | ||
- | | ||
- | stop: N | ||
- | </ | ||
- | As a default value, it means that the default value is 1,2, ... N | ||
- | |||
- | ===== !valuewithconditions ===== | ||
- | |||
- | This type allows to specify conditions on values: | ||
- | |||
- | < | ||
- | !valuewithconditions | ||
- | defaultval: -[[diemix]] | ||
- | '70 < [[iprcel]] and [[iprcel]] < 80': ' | ||
- | ' | ||
- | ' | ||
- | </ | ||
- | |||
- | defaultval is the default value if no condition is fulfilled. | ||
- | As condition, please use strings with the most basic expressions, | ||
- | |||
- | As a convention, we use " | ||
- | |||
- | ===== !valuewithunit ===== | ||
- | |||
- | This type allows to specify values with units: | ||
- | < | ||
- | | ||
- | units: eV | ||
- | value: 100.0 | ||
- | </ | ||
- | |||
- | means "100 eV". | ||
- | |||
- | ===== Constraints between variables ===== | ||
- | |||
- | In the YML file (and via the GUI), there are some constraints between variables that have been introduced. | ||
- | |||
- | You can specifiy " | ||
- | |||
- | If a varname has " | ||
- | |||
- | If a varname has as " | ||
- | |||
- | ===== Strings ===== | ||
- | |||
- | Pay attention to strings. If it is recognized as string directly, you don't need ticks (' '). | ||
- | Otherwise, you need to put ticks. | ||
- | |||
- | For example, if you want to use a link as a value, use < | ||
- | |||
- | |||
developers/abivars.yml.1501530440.txt.gz · Last modified: 2017/07/31 19:47 by Xavier Gonze