functional ​
Implementation level ​
| Type | Status |
|---|---|
| CML extraction template | |
| HTML5 representation |
Template attributes ​
| Attribute | Value |
|---|---|
| source | CP2K log |
| id | functional |
| name | XC functional |
| pattern | \s+FUNCTIONAL\|\s+\S+:.* |
| endPattern | .* |
| repeat | * |
| keep | first |
| endPattern2 | ~ |
| xml:base | method/functional.xml |
Input
FUNCTIONAL| PBE:
FUNCTIONAL| J.P.Perdew, K.Burke, M.Ernzerhof, Phys. Rev. Letter, vol. 77, n 18,
Output text
xml
<comment class="example.output" id="functional">
<module cmlx:templateRef="functional">
<list cmlx:templateRef="functional">
<scalar dataType="xsd:string" dictRef="cp2k:xcFunctional">PBE</scalar>
</list>
</module>
</comment>Template definition
xml
<record id="functional">\s+FUNCTIONAL\|\s+{A,cp2k:xcFunctional}:\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />