add placeholders to include files for error messges
This commit is contained in:
380
src/variable.h
380
src/variable.h
@ -187,17 +187,17 @@ E: LAMMPS is not built with Python embedded
|
||||
This is done by including the PYTHON package before LAMMPS is built.
|
||||
This is required to use python-style variables.
|
||||
|
||||
E: Variable name must be alphanumeric or underscore characters
|
||||
E: Variable name '%s' must have only alphanumeric characters or underscore
|
||||
|
||||
Self-explanatory.
|
||||
UNDOCUMENTED
|
||||
|
||||
E: Invalid variable in next command
|
||||
E: Invalid variable '%s' in next command
|
||||
|
||||
Self-explanatory.
|
||||
UNDOCUMENTED
|
||||
|
||||
E: All variables in next command must be same style
|
||||
E: All variables in next command must have same style
|
||||
|
||||
Self-explanatory.
|
||||
UNDOCUMENTED
|
||||
|
||||
E: Invalid variable style with next command
|
||||
|
||||
@ -208,115 +208,9 @@ E: Next command must list all universe and uloop variables
|
||||
|
||||
This is to insure they stay in sync.
|
||||
|
||||
E: Variable has circular dependency
|
||||
E: Python variable '%s' does not match Python function
|
||||
|
||||
A circular dependency is when variable "a" in used by variable "b" and
|
||||
variable "b" is also used by variable "a". Circular dependencies with
|
||||
longer chains of dependence are also not allowed.
|
||||
|
||||
E: Python variable does not match Python function
|
||||
|
||||
This matching is defined by the python-style variable and the python
|
||||
command.
|
||||
|
||||
E: Python variable has no function
|
||||
|
||||
No python command was used to define the function associated with the
|
||||
python-style variable.
|
||||
|
||||
E: Invalid syntax in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Variable evaluation before simulation box is defined
|
||||
|
||||
Cannot evaluate a compute or fix or atom-based value in a variable
|
||||
before the simulation has been setup.
|
||||
|
||||
E: Invalid compute ID in variable formula
|
||||
|
||||
The compute is not recognized.
|
||||
|
||||
E: Compute used in variable between runs is not current
|
||||
|
||||
Computes cannot be invoked by a variable in between runs. Thus they
|
||||
must have been evaluated on the last timestep of the previous run in
|
||||
order for their value(s) to be accessed. See the doc page for the
|
||||
variable command for more info.
|
||||
|
||||
E: Variable formula compute vector is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Variable formula compute array is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Per-atom compute in equal-style variable formula
|
||||
|
||||
Equal-style variables cannot use per-atom quantities.
|
||||
|
||||
E: Mismatched compute in variable formula
|
||||
|
||||
A compute is referenced incorrectly or a compute that produces per-atom
|
||||
values is used in an equal-style variable formula.
|
||||
|
||||
E: Invalid fix ID in variable formula
|
||||
|
||||
The fix is not recognized.
|
||||
|
||||
E: Fix in variable not computed at compatible time
|
||||
|
||||
Fixes generate their values on specific timesteps. The variable is
|
||||
requesting the values on a non-allowed timestep.
|
||||
|
||||
E: Variable formula fix vector is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Variable formula fix array is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Per-atom fix in equal-style variable formula
|
||||
|
||||
Equal-style variables cannot use per-atom quantities.
|
||||
|
||||
E: Mismatched fix in variable formula
|
||||
|
||||
A fix is referenced incorrectly or a fix that produces per-atom
|
||||
values is used in an equal-style variable formula.
|
||||
|
||||
E: Invalid variable name in variable formula
|
||||
|
||||
Variable name is not recognized.
|
||||
|
||||
E: Invalid variable evaluation in variable formula
|
||||
|
||||
A variable used in a formula could not be evaluated.
|
||||
|
||||
E: Atom-style variable in equal-style variable formula
|
||||
|
||||
Atom-style variables generate one value per atom which is not allowed
|
||||
in an equal-style variable.
|
||||
|
||||
E: Atomfile-style variable in equal-style variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Mismatched variable in variable formula
|
||||
|
||||
A variable is referenced incorrectly or an atom-style variable that
|
||||
produces per-atom values is used in an equal-style variable
|
||||
formula.
|
||||
|
||||
E: Invalid math/group/special function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid thermo keyword in variable formula
|
||||
|
||||
The keyword is not recognized.
|
||||
UNDOCUMENTED
|
||||
|
||||
E: Divide by 0 in variable formula
|
||||
|
||||
@ -367,78 +261,18 @@ E: Empty brackets in variable
|
||||
There is no variable syntax that uses empty brackets. Check
|
||||
the variable doc page.
|
||||
|
||||
E: Invalid variable name in variable formula
|
||||
|
||||
Variable name is not recognized.
|
||||
|
||||
E: Invalid variable evaluation in variable formula
|
||||
|
||||
A variable used in a formula could not be evaluated.
|
||||
|
||||
E: Index between variable brackets must be positive
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Cannot use ramp in variable formula between runs
|
||||
|
||||
This is because the ramp() function is time dependent.
|
||||
|
||||
E: Cannot use vdisplace in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
E: Cannot use swiggle in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
E: Cannot use cwiggle in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
E: Group ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid group function in variable formula
|
||||
|
||||
Group function is not recognized.
|
||||
|
||||
E: Region ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid special function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Gmask function in equal-style variable formula
|
||||
|
||||
Gmask is per-atom operation.
|
||||
|
||||
E: Rmask function in equal-style variable formula
|
||||
|
||||
Rmask is per-atom operation.
|
||||
|
||||
E: Grmask function in equal-style variable formula
|
||||
|
||||
Grmask is per-atom operation.
|
||||
|
||||
E: Variable ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Atomfile variable in equal-style variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid variable style in special function next
|
||||
|
||||
Only file-style or atomfile-style variables can be used with next().
|
||||
|
||||
E: Invalid is_active() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid is_available() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Invalid is_defined() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Indexed per-atom vector in variable formula without atom map
|
||||
|
||||
Accessing a value from an atom vector requires the ability to lookup
|
||||
@ -484,4 +318,186 @@ E: Invalid atom ID in variable file
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Variable name must be alphanumeric or underscore characters
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid variable in next command
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: All variables in next command must be same style
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Variable has circular dependency
|
||||
|
||||
A circular dependency is when variable "a" in used by variable "b" and
|
||||
variable "b" is also used by variable "a". Circular dependencies with
|
||||
longer chains of dependence are also not allowed.
|
||||
|
||||
U: Python variable does not match Python function
|
||||
|
||||
This matching is defined by the python-style variable and the python
|
||||
command.
|
||||
|
||||
U: Python variable has no function
|
||||
|
||||
No python command was used to define the function associated with the
|
||||
python-style variable.
|
||||
|
||||
U: Invalid syntax in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Variable evaluation before simulation box is defined
|
||||
|
||||
Cannot evaluate a compute or fix or atom-based value in a variable
|
||||
before the simulation has been setup.
|
||||
|
||||
U: Invalid compute ID in variable formula
|
||||
|
||||
The compute is not recognized.
|
||||
|
||||
U: Compute used in variable between runs is not current
|
||||
|
||||
Computes cannot be invoked by a variable in between runs. Thus they
|
||||
must have been evaluated on the last timestep of the previous run in
|
||||
order for their value(s) to be accessed. See the doc page for the
|
||||
variable command for more info.
|
||||
|
||||
U: Variable formula compute vector is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Variable formula compute array is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Per-atom compute in equal-style variable formula
|
||||
|
||||
Equal-style variables cannot use per-atom quantities.
|
||||
|
||||
U: Mismatched compute in variable formula
|
||||
|
||||
A compute is referenced incorrectly or a compute that produces per-atom
|
||||
values is used in an equal-style variable formula.
|
||||
|
||||
U: Invalid fix ID in variable formula
|
||||
|
||||
The fix is not recognized.
|
||||
|
||||
U: Fix in variable not computed at compatible time
|
||||
|
||||
Fixes generate their values on specific timesteps. The variable is
|
||||
requesting the values on a non-allowed timestep.
|
||||
|
||||
U: Variable formula fix vector is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Variable formula fix array is accessed out-of-range
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Per-atom fix in equal-style variable formula
|
||||
|
||||
Equal-style variables cannot use per-atom quantities.
|
||||
|
||||
U: Mismatched fix in variable formula
|
||||
|
||||
A fix is referenced incorrectly or a fix that produces per-atom
|
||||
values is used in an equal-style variable formula.
|
||||
|
||||
U: Atom-style variable in equal-style variable formula
|
||||
|
||||
Atom-style variables generate one value per atom which is not allowed
|
||||
in an equal-style variable.
|
||||
|
||||
U: Atomfile-style variable in equal-style variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Mismatched variable in variable formula
|
||||
|
||||
A variable is referenced incorrectly or an atom-style variable that
|
||||
produces per-atom values is used in an equal-style variable
|
||||
formula.
|
||||
|
||||
U: Invalid math/group/special function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid thermo keyword in variable formula
|
||||
|
||||
The keyword is not recognized.
|
||||
|
||||
U: Cannot use ramp in variable formula between runs
|
||||
|
||||
This is because the ramp() function is time dependent.
|
||||
|
||||
U: Cannot use vdisplace in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
U: Cannot use swiggle in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
U: Cannot use cwiggle in variable formula between runs
|
||||
|
||||
This is a function of elapsed time.
|
||||
|
||||
U: Group ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid group function in variable formula
|
||||
|
||||
Group function is not recognized.
|
||||
|
||||
U: Region ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid special function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Gmask function in equal-style variable formula
|
||||
|
||||
Gmask is per-atom operation.
|
||||
|
||||
U: Rmask function in equal-style variable formula
|
||||
|
||||
Rmask is per-atom operation.
|
||||
|
||||
U: Grmask function in equal-style variable formula
|
||||
|
||||
Grmask is per-atom operation.
|
||||
|
||||
U: Variable ID in variable formula does not exist
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Atomfile variable in equal-style variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid variable style in special function next
|
||||
|
||||
Only file-style or atomfile-style variables can be used with next().
|
||||
|
||||
U: Invalid is_active() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid is_available() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
U: Invalid is_defined() function in variable formula
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user