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

abort ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceCP2K log
idabort
nameCP2K abort
pattern.*\[ABORT\].*
endPattern.*
endPattern2~
endOffset1
repeat*
xml:baseenvironment/abort.xml

Input

      *   ___                                                                       *
      *  /   \                                                                      *
      * [ABORT]                                                                     *
      *  \___/     SCF run NOT converged. To continue the calculation regardless,   *
      *    |             please set the keyword IGNORE_CONVERGENCE_FAILURE.         *

Input

      *   ___                                                                       *
      *  /   \                                                                      *
      * [ABORT]                                                                     *
      *  \___/               Coordinate file <coordinate.xyz> not found.            *
      *    |                                                                        *

Output text

xml
<comment class="example.output" id="abort">
      <module cmlx:templateRef="abort">
        <list cmlx:templateRef="message">
          <scalar dataType="xsd:string" dictRef="cp2k:abortMessage">SCF run NOT converged. To continue the calculation regardless,   *</scalar>
        </list>
        <scalar dictRef="cp2k:aborted">true</scalar>
      </module>
    </comment>

Template definition

xml
<record id="message">\s*\*\s*\\___/\s+&#123;X,cp2k:abortMessage&#125;\s*</record>
<transform process="addChild" xpath="." elementName="cml:scalar" dictRef="cp2k:aborted" value="true" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" repeat="2" />