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

scfconverged ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idscfconverged
nameSCF convergence status
pattern\s+\*\*\*\s+SCF run converged.*
endPattern.*
repeat*
keeplast
xml:basescf/scfconverged.xml

Input

      *** SCF run converged in    18 steps ***

Output text

xml
<comment class="example.output" id="scfconverged">
      <module cmlx:templateRef="scfconverged">
        <list cmlx:templateRef="steps">
          <scalar dataType="xsd:integer" dictRef="cp2k:scfConvergedSteps">18</scalar>
        </list>
      </module>
    </comment>

Template definition

xml
<record id="steps">\s+\*\*\*\s+SCF run converged in\s+&#123;I,cp2k:scfConvergedSteps&#125;\s+steps \*\*\*\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />