header ​
Implementation level ​
Type | Status |
---|---|
CML extraction template | |
HTML5 representation |
Template attributes ​
Attribute | Value |
---|---|
source | LAMMPS log |
id | header |
name | LAMPS header |
pattern | \s*LAMMPS\s+\(.* |
endPattern | .*$\s*Reading\s*data\s*file.* |
endPattern2 | \s\s\S+.*$\S+.* |
endPattern3 | \s\s\S+.*$\s* |
endOffset | 1 |
xml:base | header.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">{A,cc:program}\({X,cc:programVersion}\).*</record>
<transform process="pullup" xpath=".//cml:scalar" />
<transform process="delete" xpath=".//cml:list[count(*)=0]" />