CP2K input reference
Version information
This HTML manual refers to
CP2K version 2.1.820
and was generated automatically from a CP2K executable
compiled on Mon Jan 30 15:16:12 CET 2012 using the
--xml command line option (see
how to generate this manual).
Thus the manual describes exactly this version of the code.
Journal papers
List of references cited in the CP2K input manual.
CP2K units
Available units of measurement which can be used in the CP2K input for keyword values.
Internal input preprocessor
Before the input is parsed, the input is run through a simple internal preprocessor.
The preprocessor recognizes the following directives independent of capitalization:
- @INCLUDE 'filename.inc'
-
The file referenced by filename.inc is included into the input file and parsed.
Recursive inclusions are not allowed and the files have to exist in the current working
directory. There can be only one @INCLUDE statement per line. Single or double quotes
have to be used if the filename contains blanks.
- @SET VAR value
-
Assigns the text value to the preprocessing variable VAR. value
is the text following VAR with the outer whitespace removed. The variable can be
recalled with a ${VAR} (or $VAR) statement. There can be only one @SET statement per line.
- ${VAR} or $VAR
-
Expand the variable VAR. The text ${VAR} (or $VAR) is replaced
with the value assigned to VAR in the last @SET directive.
There can be multiple variable statements per line. The expansion process is repeated
until no more variables are found.
- @IF / @ENDIF
-
Conditional block. The text from the @IF line up to the next line with a valid "
@ENDIF is skipped, if the expression following @IF resolves to false.
Available expressions are lexical comparisons for equality '==' or inequality '/='.
If none of the two operators are found, a '0' or whitespace resolves to false
while any text resolves to true. @IF/@ENDIF blocks cannot be nested and
cannot span across files. There can be only one test (== or /=) per @IF statement.
Input structure
All sections that can be part of a CP2K input file are shown here with their allowed nestings.
A detailed description of each section and its keywords can be obtained by clicking on the
section links. The links in the detailed descriptions switch back to the corresponding index
entries. In this way a toggling between the index and the detailed description is feasible.
Index of all input sections
Last update: Mon Jan 30 15:16:12 CET 2012