User Tools

Site Tools


exercises:code_structure

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
exercises:code_structure [2022/09/08 12:36] – created jglanexercises:code_structure [2022/09/08 12:42] (current) – removed jglan
Line 1: Line 1:
-The input of CP2K is well-organized using the following structure. One can follow the [[https://manual.cp2k.org/|CP2K Manual]] to tailor the input. 
- 
-Each section is initialized by **&SECTION** and closed by **&END SECTION**. Within a **SECTION**, one has the freedom to give the **PARAMETER** to the **KEYWORD** within this **SECTION**. 
- 
- 
-<code> 
-&SECTION 
-   KEYWORD PARAMETER 
-   &SUB_SECTION 
-      KEYWORD PARAMETER 
-   &END SUB_SECTION 
-&END SECTION 
-</code> 
- 
- 
-For example, within the **GLOBAL** section, **PROJECT** reads **H2O** as the project name, which will give the prefix of the printout files. **RUN_TYPE** reads **ENERGY** to carry out single-point energy calculations.  
-<code> 
-&GLOBAL 
-  PROJECT H2O 
-  RUN_TYPE ENERGY 
-&END GLOBAL 
-</code> 
  
exercises/code_structure.1662640577.txt.gz · Last modified: by jglan