Skip to content

header ​

Implementation level ​

TypeStatus
CML extraction template
HTML5 representation

Template attributes ​

AttributeValue
sourceLAMMPS log
idheader
nameLAMPS header
pattern\s*LAMMPS\s+\(.*
endPattern.*$\s*Reading\s*data\s*file.*
endPattern2\s\s\S+.*$\S+.*
endPattern3\s\s\S+.*$\s*
endOffset1
xml:baseheader.xml

Input ​

LAMMPS (29 Oct 2020)
  using 6 OpenMP thread(s) per MPI task
units         metal

Output text ​

xml
<comment class="example.output" id="header">
       <module cmlx:templateRef="header">
          <list cmlx:templateRef="program">
             <scalar dataType="xsd:string" dictRef="cc:program">LAMMPS</scalar>
             <scalar dataType="xsd:string" dictRef="cc:programVersion">29 Oct 2020</scalar>
          </list>
       </module>    
    </comment>

Template definition ​

xml
<record id="program">&#123;A,cc:program&#125;\(&#123;X,cc:programVersion&#125;\).*</record>
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />