vibreference ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | vibreference |
| name | Reference geometry energy |
| pattern | \s+VIB\|.*Total energy:.* |
| endPattern | .* |
| endPattern2 | ~ |
| repeat | * |
| keep | first |
| xml:base | scf/vibreference.xml |
Input
VIB| REPLICA Nr. 1- Energy and Forces for particle: 1 coordinate: X + DX
VIB| Total energy: -17.220767160541
Output text
xml
<comment class="example.output" id="vibreference">
<module cmlx:templateRef="vibreference">
<list cmlx:templateRef="reference">
<scalar dataType="xsd:double" dictRef="cp2k:referenceEnergy" units="nonsi:hartree">-17.220767160541</scalar>
</list>
</module>
</comment>Template definition
xml
<record id="reference">\s+VIB\|.*Total energy:\s+{E,cp2k:referenceEnergy}\s*</record>
<transform process="addUnits" xpath=".//cml:scalar" value="nonsi:hartree" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />