developers:abivars.yml
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
developers:abivars.yml [2018/05/26 20:44] – [Specifications for the abinit_vars.yml file] 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 (Obsolete) ====== | ||
- | |||
- | ** THE INFORMATION ABOUT THE MANAGEMENT OF THE DOCUMENTATION HAS BEEN TRANSFERRED TO THE MAIN ABINIT SITE, AT | ||
- | https:// | ||
- | |||
- | As values in the ~abinit/ | ||
- | |||
- | * [[http:// | ||
- | * [[http:// | ||
- | |||
- | ===== Strings ===== | ||
- | |||
- | Pay attention to strings, as YAML is used. If a chain of character is recognized directly to be a string by YAML, you don't need ticks (' '). | ||
- | Otherwise, you need to put ticks. | ||
- | |||
- | For example, if you want to use a link as a value, use a link shortcut like < | ||
- | |||
- | ===== Types ===== | ||
- | |||
- | Several " | ||
- | |||
- | |||
- | ===== !variable ===== | ||
- | |||
- | It 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 : possibly, a specific characteristics of the input variable. To be chosen among the names in ~abinit/ | ||
- | * commentdefault : possibly, some comment about a default value. | ||
- | * commentdims : possibly, some comment about the dimension of an array. | ||
- | * defaultval : must be an integer or real value, possibly specified using the types presented below (e.g. !multiplevalue) | ||
- | * dimensions : either scalar or a list of dimensions, using YML syntax. | ||
- | * excludes : possible excluded values | ||
- | * mnemonics : a longer description of the variable role, in a few words | ||
- | * requires : the input variable is relevant only if this condition is fulfilled | ||
- | * text : free text describing the input variable | ||
- | * topics : a string, specified in [[developers: | ||
- | * varset : a unique "set of variables" | ||
- | * vartype : to be chosen among integer, real or string | ||
- | If there is no information of a type for a specific variable, its value must be " | ||
- | |||
- | ===== !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 " | ||
- | |||
- | |||
- | |||
- | |||
developers/abivars.yml.1527367491.txt.gz · Last modified: 2018/05/26 20:44 by Xavier Gonze