l101.modredundant ​
Implementation level ​
Type | Status |
---|---|
CML extraction template | |
HTML5 representation |
Template attributes ​
Attribute | Value |
---|---|
source | Gaussian log |
id | l101.modredundant |
pattern | \s*The\sfollowing\sModRedundant\sinput\ssection.* |
endPattern | \s+Isotopes\sand\sNuclear\sProperties.* |
endOffset | 0 |
repeat | * |
xml:base | l101/l101.modredundant.xml |
Input ​
The following ModRedundant input section has been read:
X 1 F
B 1 2 F 1.1000
A 1 2 3 F 109.50
D 1 2 3 4 F 10.000
L 2 1 5 6 A
B 1 5 S 5 0.0100
L 1 2 5 -1 A
X 1 F
L 1 2 5 -1 A
Isotopes and Nuclear Properties:
Output text ​
xml
<comment class="example.output" id="l101.modredundant">
<module cmlx:lineCount="10" cmlx:templateRef="l101.modredundant">
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">X</scalar>
<scalar dataType="xsd:string" dictRef="x:action">F</scalar>
<array dataType="xsd:integer" size="1" dictRef="x:serial">1</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">B</scalar>
<scalar dataType="xsd:string" dictRef="x:action">F</scalar>
<scalar dataType="xsd:double" dictRef="x:parameter">1.1</scalar>
<array dataType="xsd:integer" size="2" dictRef="x:serial">1 2</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">A</scalar>
<scalar dataType="xsd:string" dictRef="x:action">F</scalar>
<scalar dataType="xsd:double" dictRef="x:parameter">109.5</scalar>
<array dataType="xsd:integer" size="3" dictRef="x:serial">1 2 3</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">D</scalar>
<scalar dataType="xsd:string" dictRef="x:action">F</scalar>
<scalar dataType="xsd:double" dictRef="x:parameter">10.0</scalar>
<array dataType="xsd:integer" size="4" dictRef="x:serial">1 2 3 4</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">L</scalar>
<scalar dataType="xsd:string" dictRef="x:action">A</scalar>
<array dataType="xsd:integer" size="4" dictRef="x:serial">2 1 5 6</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">B</scalar>
<scalar dataType="xsd:string" dictRef="x:action">S</scalar>
<scalar dataType="xsd:double" dictRef="x:stepnumber">5.0</scalar>
<scalar dataType="xsd:double" dictRef="x:stepincrement">0.01</scalar>
<array dataType="xsd:integer" size="2" dictRef="x:serial">1 5</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">L</scalar>
<scalar dataType="xsd:string" dictRef="x:action">A</scalar>
<array dataType="xsd:integer" size="4" dictRef="x:serial">1 2 5 -1</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">X</scalar>
<scalar dataType="xsd:string" dictRef="x:action">F</scalar>
<array dataType="xsd:integer" size="1" dictRef="x:serial">1</array>
</list>
<list cmlx:templateRef="modred">
<scalar dataType="xsd:string" dictRef="x:restriction">L</scalar>
<scalar dataType="xsd:string" dictRef="x:action">A</scalar>
<array dataType="xsd:integer" size="4" dictRef="x:serial">1 2 5 -1</array>
</list>
</module>
</comment>
Template definition ​
xml
<record repeat="1" />
<templateList> <template pattern="\s+[XBADL].*[AFK]\s*" endPattern=".*" endPattern2="~" repeat="*" endOffset="0"> <record id="modred">\s+{A,x:restriction}{1_4I,x:serial}{A,x:action}</record>
</template> <template pattern="\s+[XBADL].*[AFK]\s+[0-9].*" endPattern=".*" endPattern2="~" repeat="*" endOffset="0"> <record id="modred">\s+{A,x:restriction}{1_4I,x:serial}{A,x:action}{F,x:parameter}</record>
</template> <template pattern="\s+[XBADL].*[Ss]\s+\d.*" endPattern=".*" endPattern2="~" repeat="*" endOffset="0"> <record id="modred">\s+{A,x:restriction}{1_4I,x:serial}{A,x:action}{F,x:stepnumber}{F,x:stepincrement}</record>
</template>
</templateList>
<transform process="pullup" repeat="1" xpath="./cml:module/cml:list/cml:list/cml:scalar" />
<transform process="pullup" repeat="1" xpath="./cml:module/cml:list/cml:list/cml:array" />
<transform process="pullup" repeat="1" xpath="./cml:module/cml:list[@cmlx:templateRef='modred']" />
<transform process="delete" xpath="./cml:list/cml:list[count(*)=0]" />
<transform process="delete" xpath="./cml:list[count(*)=0]" />
<transform process="delete" xpath="./cml:module[count(*)=0]" />