header
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
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
1<comment class="example.output" id="header">
2 <module cmlx:templateRef="header">
3 <list cmlx:templateRef="program">
4 <scalar dataType="xsd:string" dictRef="cc:program">LAMMPS</scalar>
5 <scalar dataType="xsd:string" dictRef="cc:programVersion">29 Oct 2020</scalar>
6 </list>
7 </module>
8 </comment>
Template definition
1<record id="program">{A,cc:program}\({X,cc:programVersion}\).*</record>
2<transform process="pullup" xpath=".//cml:scalar" />
3<transform process="delete" xpath=".//cml:list[count(*)=0]" />