Skip to content

l103.trust ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceGaussian log
idl103.trust
pattern\s*Trust.*\s*
endPattern.*Number.*\s*
endOffset1
xml:basel103/l103.trust.xml

Input ​

 Trust Radius=3.00D-01 FncErr=1.00D-07 GrdErr=1.00D-06
 Number of steps in this run=  20 maximum allowed number of steps= 100.

Output text ​

xml
<comment class="example.output" id="l103.trust">
    <module cmlx:templateRef="l103.trust">
      <scalar dataType="xsd:double" dictRef="g:trustrad">0.3</scalar>
      <scalar dataType="xsd:double" dictRef="g:fncerr">1.0E-7</scalar>
      <scalar dataType="xsd:double" dictRef="g:grderr">1.0E-6</scalar>
      <scalar dataType="xsd:integer" dictRef="g:nstep">20</scalar>
      <scalar dataType="xsd:integer" dictRef="g:allowedstep">100</scalar>
    </module>
  </comment>

Template definition ​

xml
<record repeat="*" id="length">\s*Trust Radius=&#123;E,g:trustrad&#125; FncErr=&#123;E,g:fncerr&#125; GrdErr=&#123;E,g:grderr&#125;</record>
<record repeat="*" id="angle">\s*Number of steps in this run=&#123;I,g:nstep&#125; maximum allowed number of steps= &#123;I,g:allowedstep&#125;\.\s*</record>
<transform process="pullup" xpath=".//cml:scalar" repeat="2" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />