Skip to content

l103.itemconverge ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceGaussian log
idl103.itemconverge
repeat*
pattern\s*Item\s+Value.*
endOffset1
endPattern\s*RMS\s+Displacement.*
xml:basel103/l103.itemconverge.xml

Input ​

         Item               Value     Threshold  Converged?
 Maximum Force            0.012566     0.000450     NO 
 RMS     Force            0.007948     0.000300     NO 
 Maximum Displacement     0.038691     0.001800     NO 
 RMS     Displacement     0.024470     0.001200     NO 

Output text ​

xml
<comment class="example.output" id="l103.itemconverge">
    <module cmlx:templateRef="l103.itemconverge">
      <list cmlx:lineCount="4" cmlx:templateRef="row">
        <array dataType="xsd:string" dictRef="g:item" />
        <array dataType="xsd:double" dictRef="g:value" size="4">4.5E-4 3.0E-4 0.0018 0.0012</array>
        <array dataType="xsd:double" dictRef="g:threshold" size="4">0.0 0.0 0.0 0.0</array>
        <array dataType="xsd:string" dictRef="g:converged" size="4">NO NO NO NO</array>
      </list>
    </module>
  </comment>

Template definition ​

xml
<record />
<record id="row" repeat="*" makeArray="true">\s*&#123;X,g:item&#125;\s+&#123;F,g:value&#125;&#123;F,g:threshold&#125;&#123;A,g:converged&#125;\s*</record>
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />