You are viewing the pre-release documentation of the upcoming ioChem-BD v5 release.ioChem-BD v5 pre-release docs.What's newWhat's newยทVisit the v4 legacy documentationv4 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" />