fragment.files
Type |
Status |
---|---|
CML extraction template |
|
HTML5 representation |
Attribute |
Value |
---|---|
source |
AMS ADF log |
id |
fragment.files |
name |
Fragment files section |
pattern |
\s+Fragment\sFile\(s\).* |
endPattern |
\s* |
endOffset |
1 |
repeat |
* |
xml:base |
init/modelparameters/fragment.files.xml |
Input
Fragment File(s)
----------------
Lu:
file : t21.Lu.5p
jobid: ADF 2012.01 RunTime: Nov11-2013 11:30:15 Nodes: 1 Procs: 1
title: Lutetium (TZP, 5p frozen)
N:
file : t21.N.1s
jobid: ADF 2012.01 RunTime: Nov11-2013 11:30:16 Nodes: 1 Procs: 1
title: Nitrogen (TZP, 1s frozen)
H:
file : t21.H
jobid: ADF 2012.01 RunTime: Nov11-2013 11:30:17 Nodes: 1 Procs: 1
title: Hydrogen (TZP)
C:
file : t21.C.1s
jobid: ADF 2012.01 RunTime: Nov11-2013 11:30:16 Nodes: 1 Procs: 1
title: Carbon (TZP, 1s frozen)
Input
Fragment File(s)
----------------
W:
file : t21.W.4d
jobid: ADF 2007.01 RunTime: Oct16-2008 12:08:13
title: Tungsten (TZP, 4d frozen)
V:
file : t21.V.2p
jobid: ADF 2007.01 RunTime: Oct16-2008 12:08:14
title: Vanadium (TZP, 2p frozen)
O:
file : t21.O.1s
jobid: ADF 2007.01 RunTime: Oct16-2008 12:08:12
title: Oxygen (TZP, 1s frozen)
Output text
1<comment class="example.output" id="fragment.files">
2 <module cmlx:lineCount="18" cmlx:templateRef="fragment.files">
3 <module cmlx:lineCount="18" cmlx:templateRef="fragment.files">
4 <list cmlx:templateRef="elementType">
5 <atom elementType="Lu" id="a1">
6 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2012.01</scalar>
7 <scalar dataType="xsd:string" dictRef="cc:runtime">Nov11-2013 11:30:15</scalar>
8 <scalar dataType="xsd:integer" dictRef="cc:nodes">1</scalar>
9 <scalar dataType="xsd:integer" dictRef="cc:processors">1</scalar>
10 <scalar dataType="xsd:string" dictRef="cc:elementName">Lutetium</scalar>
11 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
12 <scalar dataType="xsd:string" dictRef="cc:contraction">5p</scalar>
13 </atom>
14 </list>
15 </module>
16 <module cmlx:lineCount="4" cmlx:templateRef="atom">
17 <list cmlx:templateRef="elementType">
18 <atom elementType="N" id="a1">
19 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2012.01</scalar>
20 <scalar dataType="xsd:string" dictRef="cc:runtime">Nov11-2013 11:30:16</scalar>
21 <scalar dataType="xsd:integer" dictRef="cc:nodes">1</scalar>
22 <scalar dataType="xsd:integer" dictRef="cc:processors">1</scalar>
23 <scalar dataType="xsd:string" dictRef="cc:elementName">Nitrogen</scalar>
24 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
25 <scalar dataType="xsd:string" dictRef="cc:contraction">1s</scalar>
26 </atom>
27 </list>
28 </module>
29 <module cmlx:lineCount="4" cmlx:templateRef="atom">
30 <list cmlx:templateRef="elementType">
31 <atom elementType="H" id="a1">
32 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2012.01</scalar>
33 <scalar dataType="xsd:string" dictRef="cc:runtime">Nov11-2013 11:30:17</scalar>
34 <scalar dataType="xsd:integer" dictRef="cc:nodes">1</scalar>
35 <scalar dataType="xsd:integer" dictRef="cc:processors">1</scalar>
36 <scalar dataType="xsd:string" dictRef="cc:elementName">Hydrogen</scalar>
37 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
38 </atom>
39 </list>
40 </module>
41 <module cmlx:lineCount="4" cmlx:templateRef="atom">
42 <list cmlx:templateRef="elementType">
43 <atom elementType="C" id="a1">
44 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2012.01</scalar>
45 <scalar dataType="xsd:string" dictRef="cc:runtime">Nov11-2013 11:30:16</scalar>
46 <scalar dataType="xsd:integer" dictRef="cc:nodes">1</scalar>
47 <scalar dataType="xsd:integer" dictRef="cc:processors">1</scalar>
48 <scalar dataType="xsd:string" dictRef="cc:elementName">Carbon</scalar>
49 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
50 <scalar dataType="xsd:string" dictRef="cc:contraction">1s</scalar>
51 </atom>
52 </list>
53 </module>
54 </module>
55 </comment>
Output text
1<comment class="example.output" id="fragment.files2">
2 <module cmlx:lineCount="14" cmlx:templateRef="fragment.files">
3 <module cmlx:lineCount="4" cmlx:templateRef="atom">
4 <list cmlx:templateRef="elementType">
5 <atom elementType="W" id="a1">
6 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2007.01</scalar>
7 <scalar dataType="xsd:string" dictRef="cc:runtime">Oct16-2008 12:08:13</scalar>
8 <scalar dataType="xsd:string" dictRef="cc:elementName">Tungsten</scalar>
9 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
10 <scalar dataType="xsd:string" dictRef="cc:contraction">4d</scalar>
11 </atom>
12 </list>
13 </module>
14 <module cmlx:lineCount="4" cmlx:templateRef="atom">
15 <list cmlx:templateRef="elementType">
16 <atom elementType="V" id="a1">
17 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2007.01</scalar>
18 <scalar dataType="xsd:string" dictRef="cc:runtime">Oct16-2008 12:08:14</scalar>
19 <scalar dataType="xsd:string" dictRef="cc:elementName">Vanadium</scalar>
20 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
21 <scalar dataType="xsd:string" dictRef="cc:contraction">2p</scalar>
22 </atom>
23 </list>
24 </module>
25 <module cmlx:lineCount="4" cmlx:templateRef="atom">
26 <list cmlx:templateRef="elementType">
27 <atom elementType="O" id="a1">
28 <scalar dataType="xsd:string" dictRef="cc:jobname">ADF 2007.01</scalar>
29 <scalar dataType="xsd:string" dictRef="cc:runtime">Oct16-2008 12:08:12</scalar>
30 <scalar dataType="xsd:string" dictRef="cc:elementName">Oxygen</scalar>
31 <scalar dataType="xsd:string" dictRef="cc:basis">TZP</scalar>
32 <scalar dataType="xsd:string" dictRef="cc:contraction">1s</scalar>
33 </atom>
34 </list>
35 </module>
36 </module>
37 </comment>
Template definition
1<record repeat="2" />
2<templateList> <template id="atom" pattern="\s*\S+:\s*" endPattern="\s*\S+:\s*" endPattern2="\s*" endOffset="0" repeat="*"> <record id="elementType">\s*{A,cc:elementType}\:\s*</record> <record /> <templateList> <template pattern="\s*jobid:.*RunTime.*Nodes:.*Procs:.*" endPattern=".*"> <record id="jobid">\s*jobid:{X,cc:jobname}\s*RunTime:{X,cc:runtime}Nodes:{I,cc:nodes}Procs:{I,cc:processors}\s*</record>
3 </template> <template pattern="\s*jobid:.*RunTime((?!Nodes|Procs).)*" endPattern=".*"> <record id="jobid">\s*jobid:{X,cc:jobname}\s*RunTime:{X,cc:runtime}\s*</record>
4 </template> <template pattern="\s*title:.*\([^,]+\)\s*" endPattern=".*" endPattern2="~"> <record id="title">\s*title:{A,cc:elementName}\({X,cc:basis}\)\s*</record>
5 </template> <template pattern="\s*title:.*\(.*all\selectron.*" endPattern=".*" endPattern2="~"> <record id="title">\s*title:{A,cc:elementName}\({A,cc:basis},.*</record>
6 </template> <template pattern="\s*title:.*\(.*\)\s*" endPattern=".*" endPattern2="~"> <record id="title">\s*title:{A,cc:elementName}\({A,cc:basis},{X,cc:contraction}\s+frozen\)\s*</record>
7 </template>
8 </templateList> <transform process="createAtom" xpath=".//cml:scalar[@dictRef='cc:elementType']" /> <transform process="move" xpath=".//cml:scalar" to=".//cml:atom" />
9 </template>
10 </templateList>
11<transform process="delete" xpath=".//cml:list[count(*)=0]" />
12<transform process="delete" xpath=".//cml:list[count(*)=0]" />
13<transform process="delete" xpath=".//cml:module[count(*)=0]" />