You are viewing the documentation of a previous ioChem-BD version (v4, legacy).ioChem-BD v4 legacy docs.Visit the current documentationCurrent docs
Skip to content

functional ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idfunctional
nameXC functional
pattern\s+FUNCTIONAL\|\s+\S+:.*
endPattern.*
repeat*
keepfirst
endPattern2~
xml:basemethod/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+&#123;A,cp2k:xcFunctional&#125;:\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />