l103.itemconverge

Implementation level
Type Status
CML extraction template image0
HTML5 representation image1
Template attributes
Attribute Value
source Gaussian log
id l103.itemconverge
repeat *
pattern \s*Items+Value.*
endOffset 1
endPattern \s*RMSs+Displacement.*
xml:base l103/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.

<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.

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