diff --git a/doc/mkexp.fodt b/doc/mkexp.fodt index d17aad166670cb7d540232a23cede8b31ec422d2..cba161bfd69638b04a4aadb2a3b0843a49561db7 100644 --- a/doc/mkexp.fodt +++ b/doc/mkexp.fodt @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="UTF-8"?> <office:document xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:rpt="http://openoffice.org/2005/report" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:officeooo="http://openoffice.org/2009/office" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" office:version="1.2" office:mimetype="application/vnd.oasis.opendocument.text"> - <office:meta><meta:creation-date>2015-01-05T17:44:27.618344249</meta:creation-date><dc:title>Make Experiments!</dc:title><meta:editing-duration>P12DT2H54M25S</meta:editing-duration><meta:editing-cycles>155</meta:editing-cycles><meta:generator>LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-3</meta:generator><meta:initial-creator>Karl-Hermann Wieners</meta:initial-creator><dc:date>2019-06-28T16:01:24.843267451</dc:date><dc:creator>Karl-Hermann Wieners</dc:creator><meta:printed-by>Karl-Hermann Wieners</meta:printed-by><meta:print-date>2015-01-20T10:55:48.576690105</meta:print-date><dc:subject>Run-script generation for earth system models</dc:subject><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="31" meta:paragraph-count="574" meta:word-count="7947" meta:character-count="50647" meta:non-whitespace-character-count="42877"/><meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="A4" xlink:href="../../../../../../home/m221078/.config/libreoffice/4/user/template/A4.ott" meta:date="2015-01-05T17:44:27.463210655"/></office:meta> + <office:meta><meta:creation-date>2015-01-05T17:44:27.618344249</meta:creation-date><dc:title>Make Experiments!</dc:title><meta:editing-duration>P12DT2H54M40S</meta:editing-duration><meta:editing-cycles>156</meta:editing-cycles><meta:generator>LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-3</meta:generator><meta:initial-creator>Karl-Hermann Wieners</meta:initial-creator><dc:date>2019-06-28T19:33:49.947331607</dc:date><dc:creator>Karl-Hermann Wieners</dc:creator><meta:printed-by>Karl-Hermann Wieners</meta:printed-by><meta:print-date>2015-01-20T10:55:48.576690105</meta:print-date><dc:subject>Run-script generation for earth system models</dc:subject><meta:document-statistic meta:table-count="0" meta:image-count="0" meta:object-count="0" meta:page-count="31" meta:paragraph-count="574" meta:word-count="7947" meta:character-count="50644" meta:non-whitespace-character-count="42874"/><meta:template xlink:type="simple" xlink:actuate="onRequest" xlink:title="A4" xlink:href="../../../../../../home/m221078/.config/libreoffice/4/user/template/A4.ott" meta:date="2015-01-05T17:44:27.463210655"/></office:meta> <office:settings> <config:config-item-set config:name="ooo:view-settings"> - <config:config-item config:name="ViewAreaTop" config:type="long">268534</config:config-item> + <config:config-item config:name="ViewAreaTop" config:type="long">9313</config:config-item> <config:config-item config:name="ViewAreaLeft" config:type="long">0</config:config-item> <config:config-item config:name="ViewAreaWidth" config:type="long">26654</config:config-item> <config:config-item config:name="ViewAreaHeight" config:type="long">14025</config:config-item> @@ -13,12 +13,12 @@ <config:config-item-map-indexed config:name="Views"> <config:config-item-map-entry> <config:config-item config:name="ViewId" config:type="string">view2</config:config-item> - <config:config-item config:name="ViewLeft" config:type="long">8042</config:config-item> - <config:config-item config:name="ViewTop" config:type="long">276712</config:config-item> + <config:config-item config:name="ViewLeft" config:type="long">15249</config:config-item> + <config:config-item config:name="ViewTop" config:type="long">15591</config:config-item> <config:config-item config:name="VisibleLeft" config:type="long">0</config:config-item> - <config:config-item config:name="VisibleTop" config:type="long">268534</config:config-item> + <config:config-item config:name="VisibleTop" config:type="long">9313</config:config-item> <config:config-item config:name="VisibleRight" config:type="long">26652</config:config-item> - <config:config-item config:name="VisibleBottom" config:type="long">282557</config:config-item> + <config:config-item config:name="VisibleBottom" config:type="long">23336</config:config-item> <config:config-item config:name="ZoomType" config:type="short">0</config:config-item> <config:config-item config:name="ViewLayoutColumns" config:type="short">0</config:config-item> <config:config-item config:name="ViewLayoutBookMode" config:type="boolean">false</config:config-item> @@ -41,7 +41,7 @@ <config:config-item config:name="AlignTabStopPosition" config:type="boolean">true</config:config-item> <config:config-item config:name="PrintLeftPages" config:type="boolean">true</config:config-item> <config:config-item config:name="IgnoreFirstLineIndentInNumbering" config:type="boolean">false</config:config-item> - <config:config-item config:name="PrinterSetup" config:type="base64Binary">swH+/0hQLU9mZmljZWpldC00NjIwLXNlcmllcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpIUC1PZmZpY2VqZXQtNDYyMC1zZXJpZXMAAAAWAAMA0AAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9SFAtT2ZmaWNlamV0LTQ2MjAtc2VyaWVzCm9yaWVudGF0aW9uPVBvcnRyYWl0CmNvcGllcz0xCmNvbGxhdGU9ZmFsc2UKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCnBkZmRldmljZT0xCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQpQYWdlU2l6ZTpMZXR0ZXIASW5wdXRTbG90OkF1dG8AABIAQ09NUEFUX0RVUExFWF9NT0RFEwBEdXBsZXhNb2RlOjpVbmtub3du</config:config-item> + <config:config-item config:name="PrinterSetup" config:type="base64Binary">swH+/0hQLU9mZmljZWpldC00NjIwLXNlcmllcwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpIUC1PZmZpY2VqZXQtNDYyMC1zZXJpZXMAAAAWAAMA0AAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9SFAtT2ZmaWNlamV0LTQ2MjAtc2VyaWVzCm9yaWVudGF0aW9uPVBvcnRyYWl0CmNvcGllcz0xCmNvbGxhdGU9ZmFsc2UKbWFyZ2luZGFqdXN0bWVudD0wLDAsMCwwCmNvbG9yZGVwdGg9MjQKcHNsZXZlbD0wCnBkZmRldmljZT0xCmNvbG9yZGV2aWNlPTAKUFBEQ29udGV4RGF0YQpJbnB1dFNsb3Q6QXV0bwBQYWdlU2l6ZTpMZXR0ZXIAABIAQ09NUEFUX0RVUExFWF9NT0RFEwBEdXBsZXhNb2RlOjpVbmtub3du</config:config-item> <config:config-item config:name="CollapseEmptyCellPara" config:type="boolean">true</config:config-item> <config:config-item config:name="RedlineProtectionKey" config:type="base64Binary"/> <config:config-item config:name="UseOldPrinterMetrics" config:type="boolean">false</config:config-item> @@ -92,7 +92,7 @@ <config:config-item config:name="UnxForceZeroExtLeading" config:type="boolean">false</config:config-item> <config:config-item config:name="TabAtLeftIndentForParagraphsInList" config:type="boolean">false</config:config-item> <config:config-item config:name="PrintRightPages" config:type="boolean">true</config:config-item> - <config:config-item config:name="Rsid" config:type="int">17006124</config:config-item> + <config:config-item config:name="Rsid" config:type="int">17125141</config:config-item> <config:config-item config:name="MathBaselineAlignment" config:type="boolean">true</config:config-item> <config:config-item config:name="MsWordCompTrailingBlanks" config:type="boolean">false</config:config-item> <config:config-item config:name="InvertBorderSpacing" config:type="boolean">false</config:config-item> @@ -1091,277 +1091,277 @@ <style:style style:name="P230" style:family="paragraph" style:parent-style-name="List_20_Contents"> <style:text-properties officeooo:rsid="00fe6ad2" officeooo:paragraph-rsid="00fe6ad2"/> </style:style> - <style:style style:name="P231" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="007a1e4b"/> + <style:style style:name="P231" style:family="paragraph" style:parent-style-name="List_20_Contents"> + <style:text-properties officeooo:rsid="01037e2c" officeooo:paragraph-rsid="01037e2c"/> </style:style> <style:style style:name="P232" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="007ab691" officeooo:paragraph-rsid="007ab691"/> + <style:text-properties officeooo:paragraph-rsid="007a1e4b"/> </style:style> <style:style style:name="P233" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="007bf983"/> + <style:text-properties officeooo:rsid="007ab691" officeooo:paragraph-rsid="007ab691"/> </style:style> <style:style style:name="P234" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="008e53fe" officeooo:paragraph-rsid="008e53fe"/> + <style:text-properties officeooo:paragraph-rsid="007bf983"/> </style:style> <style:style style:name="P235" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties fo:font-style="italic" officeooo:rsid="00925c69" officeooo:paragraph-rsid="00925c69" style:font-style-asian="italic" style:font-style-complex="italic"/> + <style:text-properties officeooo:rsid="008e53fe" officeooo:paragraph-rsid="008e53fe"/> </style:style> <style:style style:name="P236" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="0090e55e"/> + <style:text-properties fo:font-style="italic" officeooo:rsid="00925c69" officeooo:paragraph-rsid="00925c69" style:font-style-asian="italic" style:font-style-complex="italic"/> </style:style> <style:style style:name="P237" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="00925c69" officeooo:paragraph-rsid="00925c69"/> + <style:text-properties officeooo:paragraph-rsid="0090e55e"/> </style:style> <style:style style:name="P238" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="00beeeb9" officeooo:paragraph-rsid="00beeeb9"/> + <style:text-properties officeooo:rsid="00925c69" officeooo:paragraph-rsid="00925c69"/> </style:style> <style:style style:name="P239" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="00beeeb9" officeooo:paragraph-rsid="00c0dbdb"/> + <style:text-properties officeooo:rsid="00beeeb9" officeooo:paragraph-rsid="00beeeb9"/> </style:style> <style:style style:name="P240" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties fo:font-weight="bold" officeooo:rsid="00cfb468" officeooo:paragraph-rsid="00cfb468" style:font-weight-asian="bold" style:font-weight-complex="bold"/> + <style:text-properties officeooo:rsid="00beeeb9" officeooo:paragraph-rsid="00c0dbdb"/> </style:style> <style:style style:name="P241" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties fo:font-weight="bold" officeooo:rsid="00d08d3b" officeooo:paragraph-rsid="00d08d3b" style:font-weight-asian="bold" style:font-weight-complex="bold"/> + <style:text-properties fo:font-weight="bold" officeooo:rsid="00cfb468" officeooo:paragraph-rsid="00cfb468" style:font-weight-asian="bold" style:font-weight-complex="bold"/> </style:style> <style:style style:name="P242" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties fo:font-weight="bold" officeooo:rsid="00e1d614" officeooo:paragraph-rsid="00e1d614" style:font-weight-asian="bold" style:font-weight-complex="bold"/> + <style:text-properties fo:font-weight="bold" officeooo:rsid="00d08d3b" officeooo:paragraph-rsid="00d08d3b" style:font-weight-asian="bold" style:font-weight-complex="bold"/> </style:style> <style:style style:name="P243" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:rsid="00d08d3b" officeooo:paragraph-rsid="00d08d3b"/> + <style:text-properties fo:font-weight="bold" officeooo:rsid="00e1d614" officeooo:paragraph-rsid="00e1d614" style:font-weight-asian="bold" style:font-weight-complex="bold"/> </style:style> <style:style style:name="P244" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="00dbc83d"/> + <style:text-properties officeooo:rsid="00d08d3b" officeooo:paragraph-rsid="00d08d3b"/> </style:style> <style:style style:name="P245" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="00dd5dd8"/> + <style:text-properties officeooo:paragraph-rsid="00dbc83d"/> </style:style> <style:style style:name="P246" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="00f02006"/> + <style:text-properties officeooo:paragraph-rsid="00dd5dd8"/> </style:style> <style:style style:name="P247" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="00fe6ad2"/> + <style:text-properties officeooo:paragraph-rsid="00f02006"/> </style:style> <style:style style:name="P248" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> + <style:text-properties officeooo:paragraph-rsid="00fe6ad2"/> + </style:style> + <style:style style:name="P249" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> <style:text-properties officeooo:rsid="00fff904" officeooo:paragraph-rsid="00fff904"/> </style:style> - <style:style style:name="P249" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Interrupt"> + <style:style style:name="P250" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> + <style:text-properties officeooo:paragraph-rsid="01037e2c"/> + </style:style> + <style:style style:name="P251" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Interrupt"> <style:text-properties officeooo:paragraph-rsid="008c2cba"/> </style:style> - <style:style style:name="P250" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P252" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties fo:font-style="normal" officeooo:rsid="008f3b90" officeooo:paragraph-rsid="008f3b90" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P251" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P253" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties fo:font-style="normal" fo:font-weight="normal" officeooo:rsid="00cba5e3" officeooo:paragraph-rsid="00d15d24" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-style-complex="normal" style:font-weight-complex="normal"/> </style:style> - <style:style style:name="P252" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P254" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties fo:font-style="normal" fo:font-weight="normal" officeooo:rsid="00d15d24" officeooo:paragraph-rsid="00d15d24" style:font-style-asian="normal" style:font-weight-asian="normal" style:font-style-complex="normal" style:font-weight-complex="normal"/> </style:style> - <style:style style:name="P253" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P255" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties officeooo:paragraph-rsid="00cfb468"/> </style:style> - <style:style style:name="P254" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P256" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties officeooo:rsid="00d08d3b" officeooo:paragraph-rsid="00d08d3b"/> </style:style> - <style:style style:name="P255" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> + <style:style style:name="P257" style:family="paragraph" style:parent-style-name="Preformatted_20_Text_20_Indented"> <style:text-properties officeooo:rsid="00d15d24" officeooo:paragraph-rsid="00d15d24"/> </style:style> - <style:style style:name="P256" style:family="paragraph" style:parent-style-name="Caption"> + <style:style style:name="P258" style:family="paragraph" style:parent-style-name="Caption"> <style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/> </style:style> - <style:style style:name="P257" style:family="paragraph" style:parent-style-name="Contents_20_Heading"> + <style:style style:name="P259" style:family="paragraph" style:parent-style-name="Contents_20_Heading"> <style:paragraph-properties fo:break-before="page"/> </style:style> - <style:style style:name="P258" style:family="paragraph" style:parent-style-name="Heading_20_1"> + <style:style style:name="P260" style:family="paragraph" style:parent-style-name="Heading_20_1"> <style:paragraph-properties fo:break-before="page"/> <style:text-properties officeooo:rsid="000a3505" officeooo:paragraph-rsid="000a3505"/> </style:style> - <style:style style:name="P259" style:family="paragraph" style:parent-style-name="Contents_20_1"> + <style:style style:name="P261" style:family="paragraph" style:parent-style-name="Contents_20_1"> <style:paragraph-properties> <style:tab-stops> <style:tab-stop style:position="17cm" style:type="right" style:leader-style="dotted" style:leader-text="."/> </style:tab-stops> </style:paragraph-properties> </style:style> - <style:style style:name="P260" style:family="paragraph" style:parent-style-name="Contents_20_2"> + <style:style style:name="P262" style:family="paragraph" style:parent-style-name="Contents_20_2"> <style:paragraph-properties> <style:tab-stops> <style:tab-stop style:position="16.501cm" style:type="right" style:leader-style="dotted" style:leader-text="."/> </style:tab-stops> </style:paragraph-properties> </style:style> - <style:style style:name="P261" style:family="paragraph" style:parent-style-name="Contents_20_3"> + <style:style style:name="P263" style:family="paragraph" style:parent-style-name="Contents_20_3"> <style:paragraph-properties> <style:tab-stops> <style:tab-stop style:position="16.002cm" style:type="right" style:leader-style="dotted" style:leader-text="."/> </style:tab-stops> </style:paragraph-properties> </style:style> - <style:style style:name="P262" style:family="paragraph" style:parent-style-name="Heading_20_1"> + <style:style style:name="P264" style:family="paragraph" style:parent-style-name="Heading_20_1"> <style:text-properties officeooo:rsid="001888a2" officeooo:paragraph-rsid="009eea28"/> </style:style> - <style:style style:name="P263" style:family="paragraph" style:parent-style-name="Title" style:master-page-name=""> + <style:style style:name="P265" style:family="paragraph" style:parent-style-name="Title" style:master-page-name=""> <style:paragraph-properties style:page-number="auto"/> <style:text-properties officeooo:rsid="000a3505" officeooo:paragraph-rsid="000a3505"/> </style:style> - <style:style style:name="P264" style:family="paragraph" style:parent-style-name="Title" style:master-page-name=""> + <style:style style:name="P266" style:family="paragraph" style:parent-style-name="Title" style:master-page-name=""> <style:paragraph-properties style:page-number="auto"/> <style:text-properties officeooo:rsid="00cef9a3" officeooo:paragraph-rsid="00cef9a3"/> </style:style> - <style:style style:name="P265" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P267" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="0074d148"/> </style:style> - <style:style style:name="P266" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P268" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="00750ebf"/> </style:style> - <style:style style:name="P267" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P269" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P268" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P270" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:rsid="009beecc" officeooo:paragraph-rsid="009beecc" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P269" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P271" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:paragraph-rsid="00c2926f" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P270" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P272" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P271" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P273" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="00931d47" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P272" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P274" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" officeooo:rsid="009715be" officeooo:paragraph-rsid="009acc7d" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P273" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P275" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" officeooo:rsid="009715be" officeooo:paragraph-rsid="00c6886f" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P274" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P276" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="0063d022" officeooo:paragraph-rsid="0063d022"/> </style:style> - <style:style style:name="P275" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P277" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:paragraph-rsid="00931d47"/> </style:style> - <style:style style:name="P276" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P278" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00c6886f" officeooo:paragraph-rsid="00c6886f"/> </style:style> - <style:style style:name="P277" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P279" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00d7bd9c" officeooo:paragraph-rsid="00d7bd9c"/> </style:style> - <style:style style:name="P278" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P280" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00f3a79a" officeooo:paragraph-rsid="00f3a79a"/> </style:style> - <style:style style:name="P279" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P281" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:paragraph-rsid="00fb6b92"/> </style:style> - <style:style style:name="P280" style:family="paragraph" style:parent-style-name="Subtitle"> + <style:style style:name="P282" style:family="paragraph" style:parent-style-name="Subtitle"> <style:text-properties officeooo:rsid="000a3505" officeooo:paragraph-rsid="000a3505"/> </style:style> - <style:style style:name="P281" style:family="paragraph" style:parent-style-name="Subtitle"> + <style:style style:name="P283" style:family="paragraph" style:parent-style-name="Subtitle"> <style:text-properties officeooo:rsid="000a3505" officeooo:paragraph-rsid="00beeeb9"/> </style:style> - <style:style style:name="P282" style:family="paragraph" style:parent-style-name="Subtitle"> + <style:style style:name="P284" style:family="paragraph" style:parent-style-name="Subtitle"> <style:text-properties officeooo:rsid="00beeeb9" officeooo:paragraph-rsid="00beeeb9"/> </style:style> - <style:style style:name="P283" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P285" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:paragraph-rsid="00b17591"/> </style:style> - <style:style style:name="P284" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P286" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:rsid="00288fc1" officeooo:paragraph-rsid="00423119"/> </style:style> - <style:style style:name="P285" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P287" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:paragraph-rsid="00423119"/> </style:style> - <style:style style:name="P286" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P288" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:paragraph-rsid="0063d022"/> </style:style> - <style:style style:name="P287" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P289" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="0086f697" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P288" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P290" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:paragraph-rsid="00f02006"/> </style:style> - <style:style style:name="P289" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:style style:name="P291" style:family="paragraph" style:parent-style-name="Heading_20_2"> <style:text-properties officeooo:paragraph-rsid="00f3a79a"/> </style:style> - <style:style style:name="P290" style:family="paragraph" style:parent-style-name="Footnote"> + <style:style style:name="P292" style:family="paragraph" style:parent-style-name="Footnote"> <style:text-properties officeooo:rsid="00f46600" officeooo:paragraph-rsid="00f46600"/> </style:style> - <style:style style:name="P291" style:family="paragraph" style:parent-style-name="Title" style:master-page-name="First_20_Page"> + <style:style style:name="P293" style:family="paragraph" style:parent-style-name="Title" style:master-page-name="First_20_Page"> <style:paragraph-properties style:page-number="auto"/> <style:text-properties officeooo:rsid="00cef9a3" officeooo:paragraph-rsid="00cef9a3"/> </style:style> - <style:style style:name="P292" style:family="paragraph" style:parent-style-name="Heading_20_1"> + <style:style style:name="P294" style:family="paragraph" style:parent-style-name="Heading_20_1"> <style:text-properties officeooo:rsid="001888a2" officeooo:paragraph-rsid="009eea28"/> </style:style> - <style:style style:name="P293" style:family="paragraph" style:parent-style-name="Heading_20_1"> + <style:style style:name="P295" style:family="paragraph" style:parent-style-name="Heading_20_1"> <style:paragraph-properties fo:break-before="page"/> <style:text-properties officeooo:rsid="000a3505" officeooo:paragraph-rsid="000a3505"/> </style:style> - <style:style style:name="P294" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties officeooo:paragraph-rsid="00b17591"/> - </style:style> - <style:style style:name="P295" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties officeooo:rsid="00288fc1" officeooo:paragraph-rsid="00423119"/> - </style:style> - <style:style style:name="P296" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties officeooo:paragraph-rsid="00f02006"/> - </style:style> - <style:style style:name="P297" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties officeooo:paragraph-rsid="00f3a79a"/> - </style:style> - <style:style style:name="P298" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties officeooo:paragraph-rsid="0063d022"/> - </style:style> - <style:style style:name="P299" style:family="paragraph" style:parent-style-name="Heading_20_2"> - <style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="0086f697" style:font-style-asian="normal" style:font-style-complex="normal"/> - </style:style> - <style:style style:name="P300" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P296" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="0074d148"/> </style:style> - <style:style style:name="P301" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P297" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00750ebf" officeooo:paragraph-rsid="00750ebf"/> </style:style> - <style:style style:name="P302" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P298" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00f3a79a" officeooo:paragraph-rsid="00f3a79a"/> </style:style> - <style:style style:name="P303" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P299" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00d7bd9c" officeooo:paragraph-rsid="00d7bd9c"/> </style:style> - <style:style style:name="P304" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P300" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P305" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P301" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:rsid="009beecc" officeooo:paragraph-rsid="009beecc" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P306" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P302" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:text-underline-style="none" officeooo:paragraph-rsid="00c2926f" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P307" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P303" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P308" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P304" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="00931d47" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P309" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P305" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties fo:font-style="normal" officeooo:rsid="009715be" officeooo:paragraph-rsid="00c6886f" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P310" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P306" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="0063d022" officeooo:paragraph-rsid="0063d022"/> </style:style> - <style:style style:name="P311" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P307" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:paragraph-rsid="00fb6b92"/> </style:style> - <style:style style:name="P312" style:family="paragraph" style:parent-style-name="Heading_20_3"> + <style:style style:name="P308" style:family="paragraph" style:parent-style-name="Heading_20_3"> <style:text-properties officeooo:rsid="00c6886f" officeooo:paragraph-rsid="00c6886f"/> </style:style> - <style:style style:name="P313" style:family="paragraph" style:parent-style-name="List_20_Contents"> - <style:text-properties officeooo:paragraph-rsid="00fe6ad2"/> + <style:style style:name="P309" style:family="paragraph" style:parent-style-name="List_20_Contents"> + <style:text-properties fo:font-style="normal" officeooo:rsid="01037e2c" officeooo:paragraph-rsid="01037e2c" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> - <style:style style:name="P314" style:family="paragraph" style:parent-style-name="List_20_Contents"> - <style:text-properties officeooo:rsid="01037e2c" officeooo:paragraph-rsid="01037e2c"/> + <style:style style:name="P310" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties officeooo:paragraph-rsid="00b17591"/> </style:style> - <style:style style:name="P315" style:family="paragraph" style:parent-style-name="Preformatted_20_List_20_Heading"> - <style:text-properties officeooo:paragraph-rsid="01037e2c"/> + <style:style style:name="P311" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties officeooo:rsid="00288fc1" officeooo:paragraph-rsid="00423119"/> + </style:style> + <style:style style:name="P312" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties officeooo:paragraph-rsid="00f02006"/> + </style:style> + <style:style style:name="P313" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties officeooo:paragraph-rsid="00f3a79a"/> + </style:style> + <style:style style:name="P314" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties officeooo:paragraph-rsid="0063d022"/> + </style:style> + <style:style style:name="P315" style:family="paragraph" style:parent-style-name="Heading_20_2"> + <style:text-properties fo:font-style="normal" officeooo:paragraph-rsid="0086f697" style:font-style-asian="normal" style:font-style-complex="normal"/> </style:style> <style:style style:name="T1" style:family="text"> <style:text-properties officeooo:rsid="000be205"/> @@ -2226,7 +2226,7 @@ <office:master-styles> <style:master-page style:name="Standard" style:page-layout-name="pm1"> <style:footer> - <text:p text:style-name="Footer"><text:page-number text:select-page="current">10</text:page-number><text:tab/><text:tab/><text:modification-date style:data-style-name="N84">2019-06-28</text:modification-date>, <text:modification-time style:data-style-name="N41">16:01:25</text:modification-time></text:p> + <text:p text:style-name="Footer"><text:page-number text:select-page="current">31</text:page-number><text:tab/><text:tab/><text:modification-date style:data-style-name="N84">2019-06-28</text:modification-date>, <text:modification-time style:data-style-name="N41">19:33:50</text:modification-time></text:p> </style:footer> </style:master-page> <style:master-page style:name="First_20_Page" style:display-name="First Page" style:page-layout-name="pm2" style:next-style-name="Standard"/> @@ -2241,10 +2241,10 @@ <text:sequence-decl text:display-outline-level="0" text:name="Text"/> <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/> </text:sequence-decls> - <text:p text:style-name="P291">Make Experiments!</text:p> - <text:p text:style-name="P281">Run-script generation for earth system models</text:p> - <text:p text:style-name="P282">Release <text:span text:style-name="T259">1.0</text:span>.<text:span text:style-name="T268">5dev</text:span></text:p> - <text:p text:style-name="P256">Karl-Hermann Wieners<text:line-break/><text:span text:style-name="T231">Max-Planck-Institut für Meteorologie<text:line-break/>Hamburg</text:span></text:p> + <text:p text:style-name="P293">Make Experiments!</text:p> + <text:p text:style-name="P283">Run-script generation for earth system models</text:p> + <text:p text:style-name="P284">Release <text:span text:style-name="T259">1.0</text:span>.<text:span text:style-name="T268">5</text:span></text:p> + <text:p text:style-name="P258">Karl-Hermann Wieners<text:line-break/><text:span text:style-name="T231">Max-Planck-Institut für Meteorologie<text:line-break/>Hamburg</text:span></text:p> <text:table-of-content text:style-name="Sect1" text:protected="true" text:name="Table of Contents1"> <text:table-of-content-source text:outline-level="10"> <text:index-title-template text:style-name="Contents_20_Heading">Table of Contents</text:index-title-template> @@ -2331,58 +2331,58 @@ </text:table-of-content-source> <text:index-body> <text:index-title text:style-name="Sect1" text:name="Table of Contents1_Head"> - <text:p text:style-name="P257">Table of Contents</text:p> + <text:p text:style-name="P259">Table of Contents</text:p> </text:index-title> - <text:p text:style-name="P259"><text:a xlink:type="simple" xlink:href="#__RefHeading__2518_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1 Introduction<text:tab/>3</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2520_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1 Example: ECHAM experiment setup<text:tab/>3</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2522_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.1 Experiments are defined by custom and default settings<text:tab/>3</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2524_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.2 Job templates are completed by settings to create scripts<text:tab/>4</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2526_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.3 Generating scripts only refers to the custom settings' file<text:tab/>6</text:a></text:p> - <text:p text:style-name="P259"><text:a xlink:type="simple" xlink:href="#__RefHeading__2528_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2 Details on experiment definition<text:tab/>6</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2530_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.1 Design<text:tab/>7</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2532_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.2 Tools<text:tab/>7</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2534_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3 Format of .config files<text:tab/>8</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__1669_1438093122" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.1 Variables<text:tab/>8</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2536_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.2 Sections<text:tab/>9</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2538_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.3 Special variables and sections<text:tab/>9</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2540_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.4 Variable interpolation<text:tab/>11</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2542_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.5 Evaluation of interpolation<text:tab/>12</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2544_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.6 Special expressions<text:tab/>13</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2546_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4 Format of .tmpl files<text:tab/>14</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2548_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.1 Placeholders<text:tab/>14</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2550_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.2 Variables in sections<text:tab/>14</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2552_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.3 Expressions<text:tab/>15</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2554_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.4 Loops<text:tab/>15</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2556_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.5 Conditions<text:tab/>16</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2558_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.6 Comments<text:tab/>16</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2560_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.5 Standard experiments<text:tab/>17</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2562_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.6 Standard options<text:tab/>17</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__2564_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.7 Standard environments<text:tab/>18</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__1508_1711940803" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8 Generating jobs<text:tab/>18</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2566_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.1 Changing the model job list<text:tab/>19</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2568_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.2 Pre-defined job variables<text:tab/>19</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2570_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.3 Overriding namelist settings in derived jobs<text:tab/>20</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2572_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.4 Native script variables<text:tab/>20</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2574_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.5 Initializing native script variables<text:tab/>21</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2576_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.6 Re-generation of scripts and backup<text:tab/>22</text:a></text:p> - <text:p text:style-name="P260"><text:a xlink:type="simple" xlink:href="#__RefHeading__1883_1672291846" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9 Defining namelists and other configuration files<text:tab/>22</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2578_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.1 Formatting the namelist information<text:tab/>23</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2580_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.2 Suppressing namelist groups or variables<text:tab/>23</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2714_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.3 Using the namelist text<text:tab/>24</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2584_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.4 Non-namelist configuration files<text:tab/>24</text:a></text:p> - <text:p text:style-name="P260"><text:soft-page-break/><text:a xlink:type="simple" xlink:href="#__RefHeading__2831_1132221942" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.10 Defining input files for an experiment<text:tab/>25</text:a></text:p> - <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2833_1132221942" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.10.1 Overriding input files for certain jobs<text:tab/>25</text:a></text:p> + <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2518_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1 Introduction<text:tab/>3</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2520_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1 Example: ECHAM experiment setup<text:tab/>3</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2522_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.1 Experiments are defined by custom and default settings<text:tab/>3</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2524_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.2 Job templates are completed by settings to create scripts<text:tab/>4</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2526_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">1.1.3 Generating scripts only refers to the custom settings' file<text:tab/>6</text:a></text:p> + <text:p text:style-name="P261"><text:a xlink:type="simple" xlink:href="#__RefHeading__2528_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2 Details on experiment definition<text:tab/>6</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2530_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.1 Design<text:tab/>7</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2532_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.2 Tools<text:tab/>7</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2534_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3 Format of .config files<text:tab/>8</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__1669_1438093122" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.1 Variables<text:tab/>8</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2536_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.2 Sections<text:tab/>9</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2538_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.3 Special variables and sections<text:tab/>9</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2540_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.4 Variable interpolation<text:tab/>11</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2542_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.5 Evaluation of interpolation<text:tab/>12</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2544_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.3.6 Special expressions<text:tab/>13</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2546_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4 Format of .tmpl files<text:tab/>14</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2548_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.1 Placeholders<text:tab/>14</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2550_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.2 Variables in sections<text:tab/>14</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2552_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.3 Expressions<text:tab/>15</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2554_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.4 Loops<text:tab/>15</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2556_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.5 Conditions<text:tab/>16</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2558_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.4.6 Comments<text:tab/>16</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2560_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.5 Standard experiments<text:tab/>17</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2562_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.6 Standard options<text:tab/>17</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__2564_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.7 Standard environments<text:tab/>18</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__1508_1711940803" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8 Generating jobs<text:tab/>18</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2566_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.1 Changing the model job list<text:tab/>19</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2568_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.2 Pre-defined job variables<text:tab/>19</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2570_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.3 Overriding namelist settings in derived jobs<text:tab/>20</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2572_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.4 Native script variables<text:tab/>20</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2574_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.5 Initializing native script variables<text:tab/>21</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2576_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.8.6 Re-generation of scripts and backup<text:tab/>22</text:a></text:p> + <text:p text:style-name="P262"><text:a xlink:type="simple" xlink:href="#__RefHeading__1883_1672291846" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9 Defining namelists and other configuration files<text:tab/>22</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2578_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.1 Formatting the namelist information<text:tab/>23</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2580_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.2 Suppressing namelist groups or variables<text:tab/>23</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2714_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.3 Using the namelist text<text:tab/>24</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2584_1114405012" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.9.4 Non-namelist configuration files<text:tab/>24</text:a></text:p> + <text:p text:style-name="P262"><text:soft-page-break/><text:a xlink:type="simple" xlink:href="#__RefHeading__2831_1132221942" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.10 Defining input files for an experiment<text:tab/>25</text:a></text:p> + <text:p text:style-name="P263"><text:a xlink:type="simple" xlink:href="#__RefHeading__2833_1132221942" text:style-name="Index_20_Link" text:visited-style-name="Index_20_Link">2.10.1 Overriding input files for certain jobs<text:tab/>25</text:a></text:p> </text:index-body> </text:table-of-content> <text:p text:style-name="P82"/> - <text:h text:style-name="P258" text:outline-level="1"><text:bookmark-start text:name="__RefHeading__2518_1114405012"/>Introduction<text:bookmark-end text:name="__RefHeading__2518_1114405012"/></text:h> + <text:h text:style-name="P260" text:outline-level="1"><text:bookmark-start text:name="__RefHeading__2518_1114405012"/>Introduction<text:bookmark-end text:name="__RefHeading__2518_1114405012"/></text:h> <text:p text:style-name="Text_20_body">Running a numerical earth system model experiment requires a number of preparatory and processing steps like staging input data files, providing namelists and other configuration data, housekeeping duties like model-time management, post-processing and storing <text:span text:style-name="T1">of </text:span>output data. These steps are usually put into scripts or another kind of job description that is finally executed on some high-performance computing system.</text:p> <text:p text:style-name="P1">The <text:span text:style-name="T156">Make Experiments! (</text:span>mkexp<text:span text:style-name="T156">)</text:span> toolbox provides a generic interface to setting up such a<text:span text:style-name="T1">n experiment</text:span>. At the heart of this <text:span text:style-name="T1">lies</text:span> the so-called .config file. This is a simple <text:span text:style-name="T1">text </text:span>file that contains the model settings for your experiment in a way that is <text:span text:style-name="T1">largely </text:span>independent of the job description that is later used to run it.</text:p> <text:p text:style-name="P4">To make this an easy task, MPI-M's models are delivered with a number of standard experiment types. Your own .config file will chose one of these, thus inheriting their settings for use in your experiment. Typically, it will also override or amend these settings for the purpose of your experiment.</text:p> <text:p text:style-name="P2">While the .config fil<text:span text:style-name="T2">e contains all necessary settings, there is much more to the actual job description. Therefore, the standard experiment types also provide templates (.tmpl files) for the jobs to run, that are then converted to the final job step descriptions, using the .config file settings. Besides, the .config file contains a 'jobs' section, where the job control flow and parameters of the job description itself may be adjusted, e.g. requiring more resources or disabling certain job steps.</text:span></text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2520_1114405012"/>Example: <text:span text:style-name="T3">ECHAM experiment setup</text:span><text:bookmark-end text:name="__RefHeading__2520_1114405012"/></text:h> <text:p text:style-name="P32">To illustrate the way <text:span text:style-name="T9">mkexp</text:span> works, let us look at the way that experiments with ECHAM, MPI-M's atmospheric circulation model, are set up.</text:p> - <text:h text:style-name="P265" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2522_1114405012"/>Experiments are defined by custom and default settings<text:bookmark-end text:name="__RefHeading__2522_1114405012"/></text:h> + <text:h text:style-name="P267" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2522_1114405012"/>Experiments are defined by custom and default settings<text:bookmark-end text:name="__RefHeading__2522_1114405012"/></text:h> <text:p text:style-name="P3">ECHAM comes with five <text:span text:style-name="T201">pre-defined </text:span>experiment types, amip-LR, amip-MR, amip-HR, sstClim-LR and sstClim-MR. <text:span text:style-name="T3">To set up an experiment based on one of these, like amip-LR, all you have to do is create your own experiment configuration file within ECHAM's run subdirectory, e.g. 'joe1234.config', setting amip-LR as experiment type and providing an experiment description with the header comment:</text:span></text:p> <text:p text:style-name="P101"><text:soft-page-break/># Standard AMIP experiment as baseline for further experiments (LR)</text:p> <text:p text:style-name="P101"/> @@ -2408,7 +2408,7 @@ <text:p text:style-name="P106">ATMO_INPUT_ROOT = /pool/data/ECHAM6/input/r0004 </text:p> <text:p text:style-name="P106">LAND_INPUT_ROOT = /pool/data/JSBACH/input/r0004 </text:p> <text:p text:style-name="P6">The final configuration is then merged from all of these three sources, where the experiment configuration may override <text:span text:style-name="T48">or amend </text:span>settings from the experiment type, and the type config may in turn change the model defaults.</text:p> - <text:h text:style-name="P266" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2524_1114405012"/>Job templates are completed by settings to create scripts<text:bookmark-end text:name="__RefHeading__2524_1114405012"/></text:h> + <text:h text:style-name="P268" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2524_1114405012"/>Job templates are completed by settings to create scripts<text:bookmark-end text:name="__RefHeading__2524_1114405012"/></text:h> <text:p text:style-name="P6"><text:span text:style-name="T200">Now the experiment configuration is finalized, the </text:span>settings are used to fill in <text:span text:style-name="T200">a kind of job description forms, so called </text:span><text:span text:style-name="T9">templates</text:span><text:span text:style-name="T200">, </text:span>from which eventually the <text:span text:style-name="T200">actual </text:span>job description files are created. As the structure of<text:span text:style-name="T200"> </text:span>jobs is largely independent of the model resolution, all amip- experiment types share the same set of template files. One of them is <text:span text:style-name="T221">'</text:span>amip.run.tmpl<text:span text:style-name="T221">'</text:span>, also within the run/standard_experiments subdirectory. <text:soft-page-break/><text:span text:style-name="T6">The excerpt below shows that t</text:span>his looks mostly like a shell script, but contains <text:span text:style-name="T155">placeholders</text:span> that are filled using the .config file information:</text:p> <text:p text:style-name="P106">#! /bin/bash</text:p> <text:p text:style-name="P106"/> @@ -2475,15 +2475,15 @@ <text:p text:style-name="P13"><text:span text:style-name="T200">So, as soon as</text:span> <text:span text:style-name="T200">you have set up '</text:span>joe1234.config<text:span text:style-name="T200">'</text:span>, you may create the job scripts that are needed to run your experiment. Still within ECHAM's <text:span text:style-name="T202">'</text:span>run<text:span text:style-name="T202">'</text:span> subdirectory, type the following into your terminal:</text:p> <text:p text:style-name="Preformatted_20_Text">../util/mkexp/mkexp joe1234.config</text:p> <text:p text:style-name="P14">This will <text:span text:style-name="T156">read all configuration information and </text:span>create all job scripts that are defined within your experiment's setup, <text:span text:style-name="T156">using their respective templates as shown in the previous section</text:span>. <text:span text:style-name="T9">mkexp</text:span> will put these <text:span text:style-name="T156">scripts </text:span>in <text:span text:style-name="T156">a common</text:span> directory defined by the .config variable <text:span text:style-name="T202">'</text:span>SCRIPT_DIR<text:span text:style-name="T202">'</text:span>, and <text:span text:style-name="T202">print</text:span> the name of this directory on your terminal.</text:p> - <text:h text:style-name="P262" text:outline-level="1"><text:bookmark-start text:name="__RefHeading__2528_1114405012"/>Details on <text:span text:style-name="T220">experiment</text:span> <text:span text:style-name="T220">definition</text:span><text:bookmark-end text:name="__RefHeading__2528_1114405012"/></text:h> + <text:h text:style-name="P264" text:outline-level="1"><text:bookmark-start text:name="__RefHeading__2528_1114405012"/>Details on <text:span text:style-name="T220">experiment</text:span> <text:span text:style-name="T220">definition</text:span><text:bookmark-end text:name="__RefHeading__2528_1114405012"/></text:h> <text:p text:style-name="P15">With the introductory example of the previous section in mind, this section will give some more detailed information on specific aspects of <text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51">.</text:span></text:p> - <text:h text:style-name="P283" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2530_1114405012"/><text:soft-page-break/>Design<text:bookmark-end text:name="__RefHeading__2530_1114405012"/></text:h> + <text:h text:style-name="P285" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2530_1114405012"/><text:soft-page-break/>Design<text:bookmark-end text:name="__RefHeading__2530_1114405012"/></text:h> <text:p text:style-name="P34">Experiment definition with <text:span text:style-name="T9">mkexp</text:span> <text:span text:style-name="T182">is organized</text:span> <text:span text:style-name="T182">in</text:span> three levels.</text:p> <text:p text:style-name="P34">The first level is the <text:span text:style-name="T9">mkexp</text:span> toolbox. It provides the front end to create an executable job description from a generic experiment configuration, <text:span text:style-name="T181">but does not contain any model specific information. Instead a basic set of conventions is defined that should be applicable to a very large range of model systems. When this document uses the term </text:span><text:span text:style-name="T18">mkexp</text:span><text:span text:style-name="T57">, it refers to this system level.</text:span></text:p> <text:p text:style-name="P34"><text:span text:style-name="T181">At a second level, a model needs to provide a number of files containing the information needed by </text:span><text:span text:style-name="T17">mkexp</text:span><text:span text:style-name="T181">: the required job steps and their interaction, the basic contents of job scripts, model specific information, and building blocks that may be combined to define a specific experiment. This is called the </text:span><text:span text:style-name="T17">model setup</text:span><text:span text:style-name="T56">. The files must maintain the naming conventions prescribed by </text:span><text:span text:style-name="T17">mkexp</text:span><text:span text:style-name="T56">.</text:span></text:p> <text:p text:style-name="P35"><text:span text:style-name="T51">Finally, the third level is the actual experiment definition. Here the user decides which of the building blocks from the previous level are needed, and </text:span><text:span text:style-name="T88">defines</text:span><text:span text:style-name="T51"> experiment specific settings that override or amend the information from the model setup. It is also essential to supply an experiment description and a – possibly unique – experiment identifier. All this is called the </text:span><text:span text:style-name="T9">user setup</text:span><text:span text:style-name="T51">.</text:span></text:p> <text:p text:style-name="P36"><text:span text:style-name="T51">All levels should make a clear distinction </text:span><text:span text:style-name="T58">between </text:span><text:span text:style-name="T51">the .config files, containing the experiment's configuration information, </text:span><text:span text:style-name="T58">and </text:span><text:span text:style-name="T51">the .tmpl files, containing the actual job description and job control syntax.</text:span></text:p> - <text:h text:style-name="P284" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2532_1114405012"/>Tools<text:bookmark-end text:name="__RefHeading__2532_1114405012"/></text:h> + <text:h text:style-name="P286" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2532_1114405012"/>Tools<text:bookmark-end text:name="__RefHeading__2532_1114405012"/></text:h> <text:p text:style-name="P83"><text:span text:style-name="T156">The </text:span><text:span text:style-name="T32">mkexp</text:span><text:span text:style-name="T156"> package provides a number of tools for working with script configurations and setups.</text:span></text:p> <text:p text:style-name="Preformatted_20_List_20_Heading">mkexp <text:span text:style-name="T250">[-m] [-g] </text:span><text:span text:style-name="T23">file</text:span><text:span text:style-name="T69">.</text:span><text:span text:style-name="T51">config</text:span> [<text:span text:style-name="T9">name</text:span>=<text:span text:style-name="T9">value</text:span> ...]</text:p> <text:p text:style-name="P203"><text:span text:style-name="T156">This is the main tool for generating an experiment setup. It </text:span>takes <text:span text:style-name="T203">the given</text:span> <text:span text:style-name="T203">user setup</text:span> and <text:span text:style-name="T222">the model setup that is referenced by the user setup </text:span>to generate <text:span text:style-name="T203">the</text:span> <text:span text:style-name="T203">job description files or</text:span> scripts that <text:span text:style-name="T222">are required to run a model experiment as specified in </text:span><text:span text:style-name="T21">file.</text:span><text:span text:style-name="T69">config</text:span><text:span text:style-name="T203">.</text:span></text:p> @@ -2491,26 +2491,26 @@ <text:p text:style-name="P206">mkexp<text:span text:style-name="T51"> allows to override </text:span><text:span text:style-name="T67">or amend </text:span><text:span text:style-name="T51">the .config file settings on the command line </text:span><text:soft-page-break/><text:span text:style-name="T67">by defining or re-defining a variable </text:span><text:span text:style-name="T204">name</text:span><text:span text:style-name="T67"> set to </text:span><text:span text:style-name="T204">value</text:span><text:span text:style-name="T67">. Section variables are referenced as </text:span><text:span text:style-name="T204">sectionname</text:span><text:span text:style-name="T67">.</text:span><text:span text:style-name="T204">variablename</text:span><text:span text:style-name="T67">. Any periods in the variable name have to be duplicated, e.g. to set '.remove' in section 'jobs' to 'post', use 'jobs...remove=post'. Note that three periods will always be read as '.' followed by '..', thus it is not possible to use variable names th</text:span><text:span text:style-name="T89">at</text:span><text:span text:style-name="T67"> </text:span><text:span text:style-name="T204">end</text:span><text:span text:style-name="T67"> </text:span><text:span text:style-name="T89">i</text:span><text:span text:style-name="T67">n a period.</text:span></text:p> <text:p text:style-name="P222"><text:span text:style-name="T67">W</text:span><text:span text:style-name="T51">hen given the '-m' or '--no-make-dirs' option, only the </text:span><text:span text:style-name="T68">script</text:span><text:span text:style-name="T51"> directory is created while creation of the </text:span><text:span text:style-name="T68">run-time and outpu</text:span><text:span text:style-name="T51">t directories is skipped.</text:span></text:p> <text:p text:style-name="P224">With '-g' or '--getexp', instead of a .config file, <text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51"> expects a dump generated by </text:span><text:span text:style-name="T9">getexp -vv</text:span><text:span text:style-name="T51"> (see below). The experiment setup is regenerated from this dump, overriding any model setup.</text:span></text:p> - <text:p text:style-name="P232"><text:span text:style-name="T67">g</text:span><text:span text:style-name="T51">etexp [-v ...] </text:span><text:span text:style-name="T100">[-R]</text:span><text:span text:style-name="T51"> </text:span><text:span text:style-name="T106">[-k </text:span><text:span text:style-name="T39">key</text:span><text:span text:style-name="T106">] </text:span><text:span text:style-name="T9">file</text:span><text:span text:style-name="T51">.config [</text:span><text:span text:style-name="T9">name</text:span><text:span text:style-name="T51">=</text:span><text:span text:style-name="T9">value ...</text:span><text:span text:style-name="T51">]</text:span></text:p> + <text:p text:style-name="P233"><text:span text:style-name="T67">g</text:span><text:span text:style-name="T51">etexp [-v ...] </text:span><text:span text:style-name="T100">[-R]</text:span><text:span text:style-name="T51"> </text:span><text:span text:style-name="T106">[-k </text:span><text:span text:style-name="T39">key</text:span><text:span text:style-name="T106">] </text:span><text:span text:style-name="T9">file</text:span><text:span text:style-name="T51">.config [</text:span><text:span text:style-name="T9">name</text:span><text:span text:style-name="T51">=</text:span><text:span text:style-name="T9">value ...</text:span><text:span text:style-name="T51">]</text:span></text:p> <text:p text:style-name="P204">getexp<text:span text:style-name="T51"> reads the experiment setup the same way </text:span><text:span text:style-name="T89">as</text:span><text:span text:style-name="T51"> </text:span>mkexp<text:span text:style-name="T51">, but does not generate job scripts. Instead it prints the experiment name and directories to be generated in a shell-readable form. It is intended for debugging or passing setup information to utility scripts.</text:span></text:p> <text:p text:style-name="P208"><text:span text:style-name="T51">When given the '-v' </text:span><text:span text:style-name="T100">or '--</text:span><text:span text:style-name="T51">verbose</text:span><text:span text:style-name="T100">'</text:span><text:span text:style-name="T51"> option, all </text:span><text:span text:style-name="T9">global</text:span><text:span text:style-name="T51"> configuration variables and their values are printed in alphabetical order. </text:span><text:span text:style-name="T100">When given twice, the whole configuration is dumped </text:span><text:span text:style-name="T105">to the screen</text:span><text:span text:style-name="T100">. </text:span><text:span text:style-name="T105">Save this to a file for use with </text:span><text:span text:style-name="T38">mkexp -g</text:span><text:span text:style-name="T105">.</text:span></text:p> <text:p text:style-name="P195">When given the '-R' or '--readme' option, the header comment text is printed.</text:p> <text:p text:style-name="P227">When given the '-k' or '--key' option, only the configured value for <text:span text:style-name="T9">key</text:span> is printed. Section variables may be referenced as described above for <text:span text:style-name="T9">name</text:span>=<text:span text:style-name="T9">value</text:span><text:span text:style-name="T51">. </text:span><text:span text:style-name="T108">This option may be used more than once to print additional values.</text:span><text:span text:style-name="T51"> </text:span></text:p> - <text:p text:style-name="P244">diffexp <text:span text:style-name="T22">file</text:span><text:span text:style-name="T23">1</text:span><text:span text:style-name="T205">.config </text:span><text:span text:style-name="T22">file2</text:span><text:span text:style-name="T68">.</text:span><text:span text:style-name="T69">config</text:span></text:p> + <text:p text:style-name="P245">diffexp <text:span text:style-name="T22">file</text:span><text:span text:style-name="T23">1</text:span><text:span text:style-name="T205">.config </text:span><text:span text:style-name="T22">file2</text:span><text:span text:style-name="T68">.</text:span><text:span text:style-name="T69">config</text:span></text:p> <text:p text:style-name="P192">For an easy comparison of the whole set of generated scripts for two different experiments, this tool takes the directories defined in each configuration, locates the job scripts corresponding to each other (e.g. exp0001.run and exp0002.run), equalizes all occurrences of the experiment name in the scripts and then uses the diff tool to show differences. The environment variable 'DIFF' may be set to an alternative tool to be called instead.</text:p> - <text:p text:style-name="P233">rmexp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> + <text:p text:style-name="P234">rmexp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> <text:p text:style-name="P210">This allows <text:span text:style-name="T209">interactive </text:span>remov<text:span text:style-name="T209">al for </text:span>all data of an experiment without having to deal with path names, as these are read from the configuration.</text:p> - <text:p text:style-name="P246"><text:span text:style-name="T251">cp</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> </text:span><text:span text:style-name="T37">new_name</text:span><text:span text:style-name="T101"> </text:span><text:span text:style-name="T70">[</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> + <text:p text:style-name="P247"><text:span text:style-name="T251">cp</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> </text:span><text:span text:style-name="T37">new_name</text:span><text:span text:style-name="T101"> </text:span><text:span text:style-name="T70">[</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> <text:p text:style-name="P225"><text:span text:style-name="T252">Replicates all data </text:span>of an experiment <text:span text:style-name="T251">to a new experiment name; also updates text files by rewriting references to the old name</text:span>.</text:p> - <text:p text:style-name="P247"><text:span text:style-name="T261">du</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> + <text:p text:style-name="P248"><text:span text:style-name="T261">du</text:span>exp <text:span text:style-name="T24">file</text:span><text:span text:style-name="T206">.config</text:span><text:span text:style-name="T70"> [</text:span><text:span text:style-name="T24">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="T24">value ...</text:span><text:span text:style-name="T70">]</text:span></text:p> <text:p text:style-name="P229"><text:span text:style-name="T111">Shows disk usage for all data that has been created by</text:span><text:span text:style-name="T70"> </text:span><text:span text:style-name="T111">an</text:span><text:span text:style-name="T70"> experiment.</text:span></text:p> - <text:p text:style-name="P315"><text:soft-page-break/><text:span text:style-name="T272">upexp </text:span><text:span text:style-name="Variable"><text:span text:style-name="T272">file</text:span></text:span><text:span text:style-name="T272">.config </text:span><text:span text:style-name="T70">[</text:span><text:span text:style-name="Variable">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="Variable">value</text:span><text:span text:style-name="Variable"><text:span text:style-name="T24"> ...</text:span></text:span><text:span text:style-name="T70">]</text:span></text:p> - <text:p text:style-name="P314"><text:span text:style-name="T51">Update generated scripts for the given experiment with the same mkexp version, environment and command line, as saved in the corresponding 'update' script.</text:span></text:p> - <text:p text:style-name="P248">edit<text:span text:style-name="T271">exp</text:span> [<text:span text:style-name="Variable">file</text:span>]</text:p> + <text:p text:style-name="P250"><text:soft-page-break/><text:span text:style-name="T272">upexp </text:span><text:span text:style-name="Variable"><text:span text:style-name="T272">file</text:span></text:span><text:span text:style-name="T272">.config </text:span><text:span text:style-name="T70">[</text:span><text:span text:style-name="Variable">name</text:span><text:span text:style-name="T70">=</text:span><text:span text:style-name="Variable">value</text:span><text:span text:style-name="Variable"><text:span text:style-name="T24"> ...</text:span></text:span><text:span text:style-name="T70">]</text:span></text:p> + <text:p text:style-name="P309">Update generated scripts for the given experiment with the same mkexp version, environment and command line, as saved in the corresponding 'update' script.</text:p> + <text:p text:style-name="P249">edit<text:span text:style-name="T271">exp</text:span> [<text:span text:style-name="Variable">file</text:span>]</text:p> <text:p text:style-name="P230">Reads <text:span text:style-name="T270">the</text:span> update script <text:span text:style-name="Variable">file</text:span> ('update' by default) and <text:span text:style-name="T270">launches a program to edit the </text:span>corresponding config file. <text:span text:style-name="T270">The program is taken from the environment variables 'VISUAL' or 'EDITOR' if defined, otherwise </text:span><text:span text:style-name="T42">vi</text:span><text:span text:style-name="T270"> is launched.</text:span></text:p> - <text:p text:style-name="P246"><text:span text:style-name="T269">getconfig</text:span> <text:span text:style-name="T269">[</text:span><text:span text:style-name="Variable">file</text:span><text:span text:style-name="T206">]</text:span></text:p> + <text:p text:style-name="P247"><text:span text:style-name="T269">getconfig</text:span> <text:span text:style-name="T269">[</text:span><text:span text:style-name="Variable">file</text:span><text:span text:style-name="T206">]</text:span></text:p> <text:p text:style-name="P230">Documentation tool for experiments that were created using command line assignments. Reads <text:span text:style-name="T272">the</text:span> update script <text:span text:style-name="Variable">file</text:span> ('update' by default) and prints the corresponding config file with command line settings from the update script included.</text:p> - <text:h text:style-name="P288" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2534_1114405012"/><text:span text:style-name="T162">F</text:span>ormat of .config files<text:bookmark-end text:name="__RefHeading__2534_1114405012"/></text:h> + <text:h text:style-name="P290" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2534_1114405012"/><text:span text:style-name="T162">F</text:span>ormat of .config files<text:bookmark-end text:name="__RefHeading__2534_1114405012"/></text:h> <text:p text:style-name="P15">The .config files are simple text files containing a dictionary of variables with their respective values. They may be structured using sections and comments. <text:span text:style-name="T157">For reading these files, </text:span><text:span text:style-name="T12">mkexp</text:span><text:span text:style-name="T157"> uses the </text:span><text:span text:style-name="T12">configobj</text:span><text:span text:style-name="T157"> Python library. All settings found in the .config files are handled as Python variables internally.</text:span></text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__1669_1438093122"/>Variables<text:bookmark-end text:name="__RefHeading__1669_1438093122"/></text:h> <text:p text:style-name="P18">A <text:span text:style-name="T158">configuration variable is set by simply assigning a text value to a name, as in</text:span></text:p> @@ -2605,7 +2605,7 @@ <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2542_1114405012"/>Evaluation of interpolation<text:bookmark-end text:name="__RefHeading__2542_1114405012"/></text:h> <text:p text:style-name="P76">While interpolation looks a lot like in shell scripts, there is a major difference: interpolation is – as in Makefiles – only evaluated when the final value is written or passed on. This has the advantage that the model setup may define settings based on variables that are only defined later in the user setup.</text:p> <text:p text:style-name="P157"># model setup</text:p> - <text:p text:style-name="P249"><text:span text:style-name="T216">MODEL</text:span>_<text:span text:style-name="T216">DIR</text:span> = $HOME/<text:span text:style-name="T216">$MODEL_SUBDIR</text:span></text:p> + <text:p text:style-name="P251"><text:span text:style-name="T216">MODEL</text:span>_<text:span text:style-name="T216">DIR</text:span> = $HOME/<text:span text:style-name="T216">$MODEL_SUBDIR</text:span></text:p> <text:p text:style-name="P158"><text:soft-page-break/># user setup</text:p> <text:p text:style-name="P158">MODEL_SUBDIR = echam</text:p> <text:p text:style-name="P77">Here, as the model setup is read before the user setup, 'MODEL_SUBDIR' is not set when 'MODEL_ROOT' is defined. <text:span text:style-name="T217">This works, because i</text:span>nterpolation of 'MODEL_ROOT's value is postponed until all levels of setup have been read.</text:p> @@ -2615,21 +2615,21 @@ <text:p text:style-name="Preformatted_20_Text">Oops: interpolation loop detected in value "SUBMODELS" while reading key 'SUBMODELS'</text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2544_1114405012"/>Special expressions<text:bookmark-end text:name="__RefHeading__2544_1114405012"/></text:h> <text:p text:style-name="P79">For some applications, simply including some other variable is not enough. You might want to compute a time limit from a given constant divided by the number of computing nodes, or convert a time stamp to a list of values. For these purposes, <text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51"> includes some special expressions, that are evaluated when interpolation occurs.</text:span></text:p> - <text:p text:style-name="P234"><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">eval(</text:span><text:span text:style-name="T9">expression</text:span><text:span text:style-name="T135">)</text:span><text:span text:style-name="T51"><text:line-break/></text:span><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">evals(</text:span><text:span text:style-name="T9">expression</text:span><text:span text:style-name="T135">)</text:span></text:p> + <text:p text:style-name="P235"><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">eval(</text:span><text:span text:style-name="T9">expression</text:span><text:span text:style-name="T135">)</text:span><text:span text:style-name="T51"><text:line-break/></text:span><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">evals(</text:span><text:span text:style-name="T9">expression</text:span><text:span text:style-name="T135">)</text:span></text:p> <text:p text:style-name="P228"><text:span text:style-name="T81">I</text:span><text:span text:style-name="T110">nterpret </text:span><text:span text:style-name="T41">expression</text:span><text:span text:style-name="T110"> as a valid Python expression and assign the result to </text:span><text:span text:style-name="T41">variable</text:span><text:span text:style-name="T110"> as a string. </text:span><text:span text:style-name="T109">The modules </text:span><text:span text:style-name="T266">'</text:span>os<text:span text:style-name="T266">'</text:span>, <text:span text:style-name="T266">'</text:span>re<text:span text:style-name="T266">'</text:span> and <text:span text:style-name="T266">'</text:span>time<text:span text:style-name="T266">'</text:span> <text:span text:style-name="T109">may be used in </text:span><text:span text:style-name="T40">expression</text:span><text:span text:style-name="T109">.</text:span></text:p> <text:p text:style-name="P212"><text:span text:style-name="T51">When the result is a list, </text:span><text:span text:style-name="T9">eval</text:span><text:span text:style-name="T51"> will return a list of strings, while </text:span><text:span text:style-name="T9">evals</text:span><text:span text:style-name="T51"> will return a single string, where elements are joined by a comma and a space.</text:span></text:p> <text:p text:style-name="P211"><text:span text:style-name="T51">Note that interpolation does not work for list values; if you need this, consider to set the original variable </text:span><text:span text:style-name="T78">to a string containing a Python list expression</text:span><text:span text:style-name="T51">, and </text:span><text:span text:style-name="T78">then </text:span><text:span text:style-name="T51">use </text:span><text:span text:style-name="T9">eval</text:span><text:span text:style-name="T51"> </text:span><text:span text:style-name="T91">a</text:span><text:span text:style-name="T51">round the interpolation expression:</text:span></text:p> - <text:p text:style-name="P250">DATE_<text:span text:style-name="T225">STRING</text:span> = '[2010, 10, 20]' # need quotes here!</text:p> - <text:p text:style-name="P250">DATE_<text:span text:style-name="T225">LIST</text:span> = eval($DATE_<text:span text:style-name="T226">STRING</text:span>) # becomes a 3 element list</text:p> - <text:p text:style-name="P235">variable<text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">read(</text:span>file_name<text:span text:style-name="T135">)</text:span></text:p> + <text:p text:style-name="P252">DATE_<text:span text:style-name="T225">STRING</text:span> = '[2010, 10, 20]' # need quotes here!</text:p> + <text:p text:style-name="P252">DATE_<text:span text:style-name="T225">LIST</text:span> = eval($DATE_<text:span text:style-name="T226">STRING</text:span>) # becomes a 3 element list</text:p> + <text:p text:style-name="P236">variable<text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">read(</text:span>file_name<text:span text:style-name="T135">)</text:span></text:p> <text:p text:style-name="P205"><text:span text:style-name="T51">Read the contents of the file </text:span>file_name<text:span text:style-name="T51"> and assign its contents to </text:span>variable<text:span text:style-name="T51"> as a string.</text:span></text:p> - <text:p text:style-name="P236"><text:soft-page-break/><text:span text:style-name="T27">variable</text:span><text:span text:style-name="T79"> = </text:span><text:span text:style-name="T137">split_date(</text:span><text:span text:style-name="T27">timestamp</text:span><text:span text:style-name="T137">)</text:span></text:p> + <text:p text:style-name="P237"><text:soft-page-break/><text:span text:style-name="T27">variable</text:span><text:span text:style-name="T79"> = </text:span><text:span text:style-name="T137">split_date(</text:span><text:span text:style-name="T27">timestamp</text:span><text:span text:style-name="T137">)</text:span></text:p> <text:p text:style-name="P213"><text:span text:style-name="T218">T</text:span>ake <text:span text:style-name="T9">timestamp</text:span><text:span text:style-name="T51"> and split it into a list of numerical date/time elements. </text:span><text:span text:style-name="T9">tim</text:span><text:span text:style-name="T28">e</text:span><text:span text:style-name="T9">stamp</text:span><text:span text:style-name="T51"> </text:span><text:span text:style-name="T80">must have </text:span><text:span text:style-name="T51">an ISO-like format (date elements separated by '-'; 'T' or space as date/time separator; time elements separated by ':</text:span><text:span text:style-name="T80">'; </text:span><text:span text:style-name="T51">trailing time elements </text:span><text:span text:style-name="T81">and their separators </text:span><text:span text:style-name="T80">are optional</text:span><text:span text:style-name="T51">; time zone indicator is not supported). </text:span><text:span text:style-name="T93">Unlike ISO, </text:span><text:span text:style-name="T31">split_date</text:span><text:span text:style-name="T93"> also</text:span><text:span text:style-name="T51"> </text:span><text:span text:style-name="T93">allows the date to be in the form YYYYMMDD</text:span><text:span text:style-name="T51">. </text:span><text:span text:style-name="T81">Unset fields default to zero.</text:span></text:p> - <text:p text:style-name="P237"><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">sec2time(</text:span><text:span text:style-name="T9">second_of_day</text:span><text:span text:style-name="T135">)</text:span></text:p> + <text:p text:style-name="P238"><text:span text:style-name="T9">variable</text:span><text:span text:style-name="T51"> = </text:span><text:span text:style-name="T135">sec2time(</text:span><text:span text:style-name="T9">second_of_day</text:span><text:span text:style-name="T135">)</text:span></text:p> <text:p text:style-name="P197">Take integer <text:span text:style-name="T9">second_of_day</text:span> (from 0 to 86399) and return the corresponding time stamp as string of the form HH:MM:SS.</text:p> - <text:p text:style-name="P238"><text:span text:style-name="T9">variable</text:span> = '<text:span text:style-name="T143">add_years</text:span>(<text:span text:style-name="T9">datestamp</text:span>, <text:span text:style-name="T9">offset</text:span>)'</text:p> + <text:p text:style-name="P239"><text:span text:style-name="T9">variable</text:span> = '<text:span text:style-name="T143">add_years</text:span>(<text:span text:style-name="T9">datestamp</text:span>, <text:span text:style-name="T9">offset</text:span>)'</text:p> <text:p text:style-name="P214">Take integer <text:span text:style-name="T9">offset</text:span><text:span text:style-name="T51"> (may be negative), add it to the year portion of </text:span><text:span text:style-name="T9">datestamp</text:span><text:span text:style-name="T51"> and return the resulting date string.</text:span></text:p> - <text:p text:style-name="P239"><text:span text:style-name="T9">variable</text:span> = '<text:span text:style-name="T143">add_</text:span><text:span text:style-name="T151">days</text:span>(<text:span text:style-name="T9">datestamp</text:span>, <text:span text:style-name="T9">offset</text:span>)'</text:p> + <text:p text:style-name="P240"><text:span text:style-name="T9">variable</text:span> = '<text:span text:style-name="T143">add_</text:span><text:span text:style-name="T151">days</text:span>(<text:span text:style-name="T9">datestamp</text:span>, <text:span text:style-name="T9">offset</text:span>)'</text:p> <text:p text:style-name="P215"><text:span text:style-name="T51">Take integer </text:span><text:span text:style-name="T9">offset</text:span><text:span text:style-name="T51"> (may be negative), add it to the </text:span><text:span text:style-name="T94">day</text:span><text:span text:style-name="T51"> portion of </text:span><text:span text:style-name="T9">datestamp</text:span><text:span text:style-name="T51"> and return the resulting date string. </text:span><text:span text:style-name="T94">Year and month portions will be set as appropriate, assuming a Proleptic Gregorian calendar with year 0.</text:span></text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2546_1114405012"/>Format of .tmpl files<text:bookmark-end text:name="__RefHeading__2546_1114405012"/></text:h> <text:p text:style-name="P24">The .tmpl files are also text files mostly written in the syntax of the job description that <text:span text:style-name="T9">mkexp</text:span> is meant to create. Currently this is usually the ksh or bash shell script syntax, but may also be any other interpreted language, like Perl or Python, or even a configuration or namelist file. The main difference are placeholders and structured comments that are embedded in the program text. These are evaluated or expanded using the information that comes with the .config files, to create the final text files, defining the jobs to be run on the target system.</text:p> @@ -2650,7 +2650,7 @@ <text:p text:style-name="Preformatted_20_Text">IS_AMIP_RUN=%{namelists['namelist.echam'].runctl.lamip}</text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2552_1114405012"/>Expressions<text:bookmark-end text:name="__RefHeading__2552_1114405012"/></text:h> <text:p text:style-name="P26">The placeholders may <text:span text:style-name="T166">also contain more complex expressions, using a limited set of operations that is defined in the </text:span><text:span text:style-name="T13">Jinja</text:span><text:span text:style-name="T166"> documentation. Among these are</text:span></text:p> - <text:p text:style-name="Preformatted_20_Text">LITERAL_STRING=%{'hello'}</text:p> + <text:p text:style-name="Preformatted_20_Text"><text:soft-page-break/>LITERAL_STRING=%{'hello'}</text:p> <text:p text:style-name="Preformatted_20_Text">LITERAL_INTEGER=%{42}</text:p> <text:p text:style-name="Preformatted_20_Text">LITERAL_FLOAT=%{21.5}</text:p> <text:p text:style-name="Preformatted_20_Text">LITERAL_LIST=%{['hello', 42, 21.5]}</text:p> @@ -2661,35 +2661,35 @@ <text:p text:style-name="P125">LIST_SUBLIST=%{PATH[1:3]}</text:p> <text:p text:style-name="Preformatted_20_Text">FILTERED_STRING=%{NAME | <text:span text:style-name="T167">lower()} <text:s/># is 'joe user'</text:span></text:p> <text:p text:style-name="P92">The last example allows for <text:span text:style-name="T179">a </text:span>number of predefined filters instead of 'lower'. These are described in the <text:span text:style-name="T9">Jinja</text:span> documentation (List of Builtin Filters). <text:span text:style-name="T241">Besides, </text:span><text:span text:style-name="T9">mkexp</text:span> defines <text:s/><text:span text:style-name="T244">a number of </text:span>additional filters:</text:p> - <text:p text:style-name="P240"><text:soft-page-break/>split<text:span text:style-name="T173">(</text:span><text:span text:style-name="T46">s</text:span><text:span text:style-name="T138">, </text:span><text:span text:style-name="T46">m</text:span><text:span text:style-name="T138">=-1)</text:span></text:p> + <text:p text:style-name="P241">split<text:span text:style-name="T173">(</text:span><text:span text:style-name="T46">s</text:span><text:span text:style-name="T138">, </text:span><text:span text:style-name="T46">m</text:span><text:span text:style-name="T138">=-1)</text:span></text:p> <text:p text:style-name="P198">cuts <text:span text:style-name="T243">the input </text:span>string <text:span text:style-name="T243">at all occurrences of </text:span><text:span text:style-name="T34">s</text:span><text:span text:style-name="T243">, returning</text:span> a list of substrings. <text:span text:style-name="T242">If </text:span><text:span text:style-name="T33">m</text:span><text:span text:style-name="T242"> is positive or zero, it cuts only at the first </text:span><text:span text:style-name="T33">m</text:span><text:span text:style-name="T242"> occurrences; the last element contains the remaining substring:</text:span></text:p> <text:p text:style-name="Preformatted_20_Text_20_Indented">%{ 'A B C' | <text:span text:style-name="T143">split</text:span><text:span text:style-name="T173">(' ') }<text:tab/><text:tab/>→</text:span><text:span text:style-name="T176"> </text:span><text:span text:style-name="T175">['A', 'B', 'C']</text:span></text:p> - <text:p text:style-name="P253"><text:span text:style-name="T175">%{ 'A B C' | split(' ', </text:span><text:span text:style-name="T153">1</text:span><text:span text:style-name="T175">) } <text:tab/></text:span><text:span text:style-name="T176">→ </text:span><text:span text:style-name="T175">['A', </text:span><text:span text:style-name="T153">'B C'</text:span><text:span text:style-name="T175">]</text:span></text:p> + <text:p text:style-name="P255"><text:span text:style-name="T175">%{ 'A B C' | split(' ', </text:span><text:span text:style-name="T153">1</text:span><text:span text:style-name="T175">) } <text:tab/></text:span><text:span text:style-name="T176">→ </text:span><text:span text:style-name="T175">['A', </text:span><text:span text:style-name="T153">'B C'</text:span><text:span text:style-name="T175">]</text:span></text:p> <text:p text:style-name="P217"/> <text:p text:style-name="P119">filter<text:span text:style-name="T173">()</text:span></text:p> <text:p text:style-name="P218">removes empty elements from <text:span text:style-name="T243">the input</text:span> list:</text:p> - <text:p text:style-name="P254"><text:span text:style-name="T175">%{ ['A', '', 'C'] | </text:span><text:span text:style-name="T153">filter</text:span><text:span text:style-name="T175">() }<text:tab/>→</text:span><text:span text:style-name="T173"> ['A', 'C']</text:span></text:p> - <text:p text:style-name="P241">match<text:span text:style-name="T173">(</text:span><text:span text:style-name="T46">regexp</text:span><text:span text:style-name="T173">, </text:span><text:span text:style-name="T46">default</text:span><text:span text:style-name="T173">='')</text:span></text:p> + <text:p text:style-name="P256"><text:span text:style-name="T175">%{ ['A', '', 'C'] | </text:span><text:span text:style-name="T153">filter</text:span><text:span text:style-name="T175">() }<text:tab/>→</text:span><text:span text:style-name="T173"> ['A', 'C']</text:span></text:p> + <text:p text:style-name="P242">match<text:span text:style-name="T173">(</text:span><text:span text:style-name="T46">regexp</text:span><text:span text:style-name="T173">, </text:span><text:span text:style-name="T46">default</text:span><text:span text:style-name="T173">='')</text:span></text:p> <text:p text:style-name="P219"><text:span text:style-name="T173">returns the input string</text:span><text:span text:style-name="T138">, if </text:span><text:span text:style-name="T46">regexp</text:span><text:span text:style-name="T138"> matches somewhere in it. If </text:span><text:span text:style-name="T46">regexp</text:span><text:span text:style-name="T138"> contains matching groups (parentheses), the substring matching the first group is returned. If no match is found, the </text:span><text:span text:style-name="T46">default</text:span><text:span text:style-name="T138"> string is returned:</text:span></text:p> - <text:p text:style-name="P254"><text:span text:style-name="T138">%{ 'Douglas Adams' | </text:span><text:span text:style-name="T135">match</text:span><text:span text:style-name="T138">('Adam') }<text:tab/><text:tab/>→ 'Douglas Adams'</text:span></text:p> - <text:p text:style-name="P254"><text:span text:style-name="T138">%{ 'Douglas Adams' | match(</text:span><text:span text:style-name="T135">'Eve'</text:span><text:span text:style-name="T138">) }<text:tab/><text:tab/>→ ''</text:span></text:p> - <text:p text:style-name="P254"><text:span text:style-name="T138">%{ 'Douglas Adams' | match('Abel', </text:span><text:span text:style-name="T135">'Cain'</text:span><text:span text:style-name="T138">) }<text:tab/>→ 'Cain'</text:span></text:p> - <text:p text:style-name="P254"><text:span text:style-name="T138">%{ 'Douglas Adams' | match('l</text:span><text:span text:style-name="T135">(.*)</text:span><text:span text:style-name="T138">m') }<text:tab/><text:tab/>→ 'as Ada'</text:span></text:p> - <text:p text:style-name="P243"><text:span text:style-name="T135">wordwrap</text:span><text:span text:style-name="T138">(width=79, break_long_words=true, break_on_hyphens=true, <text:s text:c="2"/><text:line-break/> <text:s text:c="8"/>wrapstring=none)</text:span></text:p> + <text:p text:style-name="P256"><text:span text:style-name="T138">%{ 'Douglas Adams' | </text:span><text:span text:style-name="T135">match</text:span><text:span text:style-name="T138">('Adam') }<text:tab/><text:tab/>→ 'Douglas Adams'</text:span></text:p> + <text:p text:style-name="P256"><text:span text:style-name="T138">%{ 'Douglas Adams' | match(</text:span><text:span text:style-name="T135">'Eve'</text:span><text:span text:style-name="T138">) }<text:tab/><text:tab/>→ ''</text:span></text:p> + <text:p text:style-name="P256"><text:span text:style-name="T138">%{ 'Douglas Adams' | match('Abel', </text:span><text:span text:style-name="T135">'Cain'</text:span><text:span text:style-name="T138">) }<text:tab/>→ 'Cain'</text:span></text:p> + <text:p text:style-name="P256"><text:span text:style-name="T138">%{ 'Douglas Adams' | match('l</text:span><text:span text:style-name="T135">(.*)</text:span><text:span text:style-name="T138">m') }<text:tab/><text:tab/>→ 'as Ada'</text:span></text:p> + <text:p text:style-name="P244"><text:span text:style-name="T135">wordwrap</text:span><text:span text:style-name="T138">(width=79, break_long_words=true, break_on_hyphens=true, <text:s text:c="2"/><text:line-break/> <text:s text:c="8"/>wrapstring=none)</text:span></text:p> <text:p text:style-name="P221"><text:span text:style-name="T138">replaces the </text:span><text:span text:style-name="T139">builtin </text:span><text:span text:style-name="T47">Jinja </text:span><text:span text:style-name="T139">filter 'wordwrap' <text:s/>by a private version that allows to suppress breaks on hyphens:</text:span></text:p> - <text:p text:style-name="P251">%{'long-hyphenated-text'|<text:span text:style-name="T143">wordwrap</text:span>(15, false)}</text:p> - <text:p text:style-name="P255"><text:span text:style-name="T139">→</text:span><text:span text:style-name="T138"> 'long- </text:span></text:p> - <text:p text:style-name="P252"><text:s text:c="3"/>hyphenated-text'</text:p> - <text:p text:style-name="P255"/> - <text:p text:style-name="P251">%{'long-hyphenated-text'|wordwrap(15, false, <text:span text:style-name="T143">false</text:span>)} </text:p> - <text:p text:style-name="P255"><text:span text:style-name="T139">→</text:span><text:span text:style-name="T138"> 'long-</text:span><text:span text:style-name="T139">hyphenated-text'</text:span></text:p> + <text:p text:style-name="P253"><text:soft-page-break/>%{'long-hyphenated-text'|<text:span text:style-name="T143">wordwrap</text:span>(15, false)}</text:p> + <text:p text:style-name="P257"><text:span text:style-name="T139">→</text:span><text:span text:style-name="T138"> 'long- </text:span></text:p> + <text:p text:style-name="P254"><text:s text:c="3"/>hyphenated-text'</text:p> + <text:p text:style-name="P257"/> + <text:p text:style-name="P253">%{'long-hyphenated-text'|wordwrap(15, false, <text:span text:style-name="T143">false</text:span>)} </text:p> + <text:p text:style-name="P257"><text:span text:style-name="T139">→</text:span><text:span text:style-name="T138"> 'long-</text:span><text:span text:style-name="T139">hyphenated-text'</text:span></text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2554_1114405012"/>Loops<text:bookmark-end text:name="__RefHeading__2554_1114405012"/></text:h> <text:p text:style-name="P28">Text in a template may be used repeatedly, like a classical 'for' loop. Loops are defined by structured comments <text:span text:style-name="T227">i.e. lines </text:span>beginning with '#%'. <text:span text:style-name="T227">They </text:span>start with '#% for … <text:span text:style-name="T170">in …:</text:span>' and end in '#% endfor':</text:p> <text:p text:style-name="Preformatted_20_Text"><text:span text:style-name="T143">#% for</text:span> countdown <text:span text:style-name="T143">in</text:span> [3, 2, 1, '<text:span text:style-name="T227">liftoff</text:span>']<text:span text:style-name="T143">:</text:span></text:p> <text:p text:style-name="Preformatted_20_Text">echo %{countdown}</text:p> <text:p text:style-name="P111">#% endfor</text:p> <text:p text:style-name="P28">will <text:span text:style-name="T168">be expanded by </text:span><text:span text:style-name="T30">mkexp</text:span><text:span text:style-name="T168"> to </text:span>yield</text:p> - <text:p text:style-name="Preformatted_20_Text"><text:soft-page-break/>echo 3</text:p> + <text:p text:style-name="Preformatted_20_Text">echo 3</text:p> <text:p text:style-name="Preformatted_20_Text">echo 2</text:p> <text:p text:style-name="Preformatted_20_Text">echo 1</text:p> <text:p text:style-name="Preformatted_20_Text">echo <text:span text:style-name="T227">liftoff</text:span></text:p> @@ -2702,7 +2702,7 @@ <text:p text:style-name="Preformatted_20_Text">echo <text:span text:style-name="T171">2: </text:span>/usr/local/bin </text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2556_1114405012"/>Condition<text:span text:style-name="T168">s</text:span><text:bookmark-end text:name="__RefHeading__2556_1114405012"/></text:h> <text:p text:style-name="P29">A template may contain alternative parts <text:span text:style-name="T171">that are selected depending on the .config data</text:span>, <text:span text:style-name="T171">similar to an 'if' statement. This is useful for e.g. skipping certain parts of the script template that are not applicable to runs of a given resolution but required for others. They are also implemented as structured comments, starting with '#% if …:' and ending in '#% endif', with optional '#% elif …:' and '#% else:' parts.</text:span></text:p> - <text:p text:style-name="P30"><text:span text:style-name="T171">For testing, you may use expressions with comparisons (==, !=, >, >=, <, <=), querying a certain list element (… in …), and logical operators (and, or, not). Sub-expressions may be parenthesized to change the order of evaluation. Besides, </text:span><text:span text:style-name="T14">Jinja</text:span><text:span text:style-name="T171"> provides a number of named tests that use the '… is …' Syntax.</text:span></text:p> + <text:p text:style-name="P30"><text:soft-page-break/><text:span text:style-name="T171">For testing, you may use expressions with comparisons (==, !=, >, >=, <, <=), querying a certain list element (… in …), and logical operators (and, or, not). Sub-expressions may be parenthesized to change the order of evaluation. Besides, </text:span><text:span text:style-name="T14">Jinja</text:span><text:span text:style-name="T171"> provides a number of named tests that use the '… is …' Syntax.</text:span></text:p> <text:p text:style-name="Preformatted_20_Text"><text:span text:style-name="T143">#% if </text:span><text:span text:style-name="T174">PATH|length()</text:span><text:span text:style-name="T172"> </text:span><text:span text:style-name="T147">is divisibleby 3:</text:span></text:p> <text:p text:style-name="P140">diff3 %{PATH[:3]|join(' ')}</text:p> <text:p text:style-name="P114">#% elif <text:span text:style-name="T174">PATH|length()</text:span> is even:</text:p> @@ -2713,28 +2713,28 @@ <text:p text:style-name="P37">If PATH is defined as in the examples above, this will result in</text:p> <text:p text:style-name="Preformatted_20_Text">diff3 /bin /usr/bin /usr/local/bin</text:p> <text:p text:style-name="P30"><text:span text:style-name="T171"><text:s/>For a list of available tests, see the </text:span><text:span text:style-name="T15">Jinja</text:span><text:span text:style-name="T178"> documentation.</text:span></text:p> - <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2558_1114405012"/><text:soft-page-break/>Comments<text:bookmark-end text:name="__RefHeading__2558_1114405012"/></text:h> + <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2558_1114405012"/>Comments<text:bookmark-end text:name="__RefHeading__2558_1114405012"/></text:h> <text:p text:style-name="P58"><text:span text:style-name="T9">Jinj</text:span>a also allows template comments that are removed when the template is expanded. This is implemented as another kind of structured comment starting with <text:span text:style-name="T228">'#%</text:span>#':</text:p> <text:p text:style-name="Preformatted_20_Text"># This comment will make it to the expanded script</text:p> <text:p text:style-name="Preformatted_20_Text">#%# This one will not make it <text:span text:style-name="T187">and is for template documentation only</text:span></text:p> - <text:h text:style-name="P278" text:outline-level="3">Block statements and block comments</text:h> + <text:h text:style-name="P280" text:outline-level="3">Block statements and block comments</text:h> <text:p text:style-name="P96">For templates that contain more <text:span text:style-name="T9">Jinja</text:span><text:span text:style-name="T51"> code than actual output lines, a variant of the standard </text:span><text:span text:style-name="T9">Jinja </text:span><text:span text:style-name="T51">block synta</text:span><text:span text:style-name="T107">x i</text:span><text:span text:style-name="T51">s available for both statements and comments</text:span><text:span text:style-name="T51"><text:note text:id="ftn1" text:note-class="footnote"><text:note-citation>1</text:note-citation><text:note-body> - <text:p text:style-name="P290">The standard <text:span text:style-name="T9">Jinja</text:span><text:span text:style-name="T51"> comment syntax '{#' collides with the Bourne shell idiom for variable size, '$â </text:span><text:span text:style-name="T141">{#</text:span><text:span text:style-name="T138">var</text:span><text:span text:style-name="T51">}'. </text:span><text:span text:style-name="T107">Standard b</text:span><text:span text:style-name="T51">lock statement syntax '{%' gives problems when </text:span><text:span text:style-name="T107">mkexp </text:span><text:span text:style-name="T51">template variables </text:span><text:span text:style-name="T107">'%{var}' </text:span><text:span text:style-name="T51">are used </text:span><text:span text:style-name="T107">in</text:span><text:span text:style-name="T51"> shell variable </text:span><text:span text:style-name="T107">expansions</text:span><text:span text:style-name="T51">, like '$</text:span><text:span text:style-name="T141">{%</text:span><text:span text:style-name="T51">{</text:span><text:span text:style-name="T107">var}:-default}'</text:span></text:p></text:note-body></text:note></text:span><text:span text:style-name="T51">. Block statements begin with '{%__mkexp__' and end with '%}', block comments begin with '{#__mkexp__' and end with '#}'.</text:span></text:p> - <text:h text:style-name="P289" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2560_1114405012"/>Standard experiment<text:span text:style-name="T49">s</text:span><text:bookmark-end text:name="__RefHeading__2560_1114405012"/></text:h> + <text:p text:style-name="P292">The standard <text:span text:style-name="T9">Jinja</text:span><text:span text:style-name="T51"> comment syntax '{#' collides with the Bourne shell idiom for variable size, '$â </text:span><text:span text:style-name="T141">{#</text:span><text:span text:style-name="T138">var</text:span><text:span text:style-name="T51">}'. </text:span><text:span text:style-name="T107">Standard b</text:span><text:span text:style-name="T51">lock statement syntax '{%' gives problems when </text:span><text:span text:style-name="T107">mkexp </text:span><text:span text:style-name="T51">template variables </text:span><text:span text:style-name="T107">'%{var}' </text:span><text:span text:style-name="T51">are used </text:span><text:span text:style-name="T107">in</text:span><text:span text:style-name="T51"> shell variable </text:span><text:span text:style-name="T107">expansions</text:span><text:span text:style-name="T51">, like '$</text:span><text:span text:style-name="T141">{%</text:span><text:span text:style-name="T51">{</text:span><text:span text:style-name="T107">var}:-default}'</text:span></text:p></text:note-body></text:note></text:span><text:span text:style-name="T51">. Block statements begin with '{%__mkexp__' and end with '%}', block comments begin with '{#__mkexp__' and end with '#}'.</text:span></text:p> + <text:h text:style-name="P291" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2560_1114405012"/>Standard experiment<text:span text:style-name="T49">s</text:span><text:bookmark-end text:name="__RefHeading__2560_1114405012"/></text:h> <text:p text:style-name="P16">When generating an experiment setup, <text:span text:style-name="T9">mkexp</text:span> expects the .config and .tmpl files to reside in a subdirectory of the current working directory, called 'standard_experiments'.</text:p> - <text:p text:style-name="P10"><text:span text:style-name="T8">The definition of a standard experiment type </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8"> may consist of a configuration in </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.config and a number of </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.</text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8">.tmpl files, one for each subsection </text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8"> of the jobs section. Before reading </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.config, the special DEFAULT.config is loaded, containing the model default settings. Both .config and .tmpl files may be missing; the default is to read only DEFAULT.config or the corresponding DEFAULT.</text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8">.tmpl file instead.</text:span></text:p> + <text:p text:style-name="P10"><text:span text:style-name="T8">The definition of a standard experiment type </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8"> may consist of a configuration </text:span><text:soft-page-break/><text:span text:style-name="T8">in </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.config and a number of </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.</text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8">.tmpl files, one for each subsection </text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8"> of the jobs section. Before reading </text:span><text:span text:style-name="T10">typename</text:span><text:span text:style-name="T8">.config, the special DEFAULT.config is loaded, containing the model default settings. Both .config and .tmpl files may be missing; the default is to read only DEFAULT.config or the corresponding DEFAULT.</text:span><text:span text:style-name="T10">jobname</text:span><text:span text:style-name="T8">.tmpl file instead.</text:span></text:p> <text:p text:style-name="P11"><text:span text:style-name="T50">The name of a</text:span>n experiment type may <text:span text:style-name="T50">be of the form </text:span><text:span text:style-name="T11">experimentkind</text:span><text:span text:style-name="T52">‑</text:span><text:span text:style-name="T11">experimentquality</text:span><text:span text:style-name="T52">, as in amip‑LR above. In this case, the experiment type is supposed to be of a certain </text:span><text:span text:style-name="T11">quality</text:span><text:span text:style-name="T52">, like a given model resolution (LR), but to share the overall experiment structure with all types of the same </text:span><text:span text:style-name="T11">kind</text:span><text:span text:style-name="T52"> (amip). Therefore, the .config files take the full name, </text:span><text:span text:style-name="T11">experimentkind</text:span><text:span text:style-name="T52">‑</text:span><text:span text:style-name="T11">experimentquality</text:span><text:span text:style-name="T52">.config, whereas the templates are defined as </text:span><text:span text:style-name="T11">experimentkind</text:span><text:span text:style-name="T52">.</text:span><text:span text:style-name="T11">jobname</text:span><text:span text:style-name="T52">.tmpl, independent of the requested quality.</text:span></text:p> <text:p text:style-name="P8">An experiment configuration must contain the special variable EXP_TYPE, set to the name of experiment type to use.</text:p> - <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2562_1114405012"/><text:soft-page-break/>Standard options<text:bookmark-end text:name="__RefHeading__2562_1114405012"/></text:h> + <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2562_1114405012"/>Standard options<text:bookmark-end text:name="__RefHeading__2562_1114405012"/></text:h> <text:p text:style-name="P11">Besides the standard experiment types, <text:span text:style-name="T9">mkexp</text:span> also supports option sets that are independent of the experiment type chosen.</text:p> <text:p text:style-name="P11">Usually these option sets contain a number of settings needed for a certain technical aspect, e.g. for changing the output interval or aggregation method for output data, or providing resolution dependent model settings. They reside in a subdirectory 'standard_options' of the current working directory, each in their respective <text:span text:style-name="T9">optionname</text:span>.config file.</text:p> <text:p text:style-name="P11">Within the experiment's .config file, options are selected by setting the variable EXP_OPTIONS to the list of required option names. These settings are loaded after the experiment type configuration but before the user defined experiment configuration.</text:p> - <text:h text:style-name="P277" text:outline-level="3"><text:span text:style-name="T248">O</text:span>ptions set due to model configuration </text:h> + <text:h text:style-name="P279" text:outline-level="3"><text:span text:style-name="T248">O</text:span>ptions set due to model configuration </text:h> <text:p text:style-name="P93">Some options may need to be set <text:span text:style-name="T247">for all experiments that use a given </text:span>model configuration. <text:span text:style-name="T247">If e.g. a part of the model is disabled at build time, the corresponding option set should also be disabled for all experiments.</text:span></text:p> - <text:p text:style-name="P94">For this, the build process may write an optional file 'SETUP.config' <text:s/>that is read before any type or user configuration. If this file contains the variable SETUP_OPTIONS, the options listed there will be loaded before loading the EXP_OPTIONS list. Do not override SETUP_OPTIONS in the user configuration unless you know what you are doing!</text:p> - <text:h text:style-name="P286" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__1508_1711940803"/>Generating <text:span text:style-name="T195">j</text:span>obs<text:bookmark-end text:name="__RefHeading__1508_1711940803"/></text:h> + <text:p text:style-name="P94">For this, the build process may write an optional file 'SETUP.config' <text:s/>that is read before any type or user configuration. If this file contains the variable SETUP_OPTIONS, the <text:soft-page-break/>options listed there will be loaded before loading the EXP_OPTIONS list. Do not override SETUP_OPTIONS in the user configuration unless you know what you are doing!</text:p> + <text:h text:style-name="P288" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__1508_1711940803"/>Generating <text:span text:style-name="T195">j</text:span>obs<text:bookmark-end text:name="__RefHeading__1508_1711940803"/></text:h> <text:p text:style-name="P42">When<text:span text:style-name="T183"> </text:span>running <text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T112">, </text:span><text:span text:style-name="T113">the special configuration section [jobs]</text:span><text:span text:style-name="T44"> </text:span><text:span text:style-name="T113">is read and evaluated. Each of its subsections, e.g. [[run]], defines a job definition file or job script to be created.</text:span></text:p> - <text:p text:style-name="P141"><text:soft-page-break/># <text:span text:style-name="T184">model setup: experiment type 'control'</text:span></text:p> + <text:p text:style-name="P141"># <text:span text:style-name="T184">model setup: experiment type 'control'</text:span></text:p> <text:p text:style-name="P128">[jobs]</text:p> <text:p text:style-name="P128"><text:s text:c="2"/>[[pre]]</text:p> <text:p text:style-name="P128"><text:s text:c="2"/>[[run]]</text:p> @@ -2743,7 +2743,7 @@ <text:p text:style-name="P43"><text:span text:style-name="T116">The resulting job scripts are </text:span><text:span text:style-name="T115">written to the directory defined by SCRIPT_DIR, </text:span><text:span text:style-name="T116">e.g. </text:span><text:span text:style-name="T115">as 'joe1234.run', </text:span><text:span text:style-name="T116">and marked as being executable. </text:span><text:span text:style-name="T122">Besides, as mentioned before, the contents of the special variable EXP_DESCRIPTION is written to a README file in that same directory. </text:span><text:span text:style-name="T125">Also, an update script is created that allows to re-generate all output files with identical environment and command line settings by simply running './update' from the script directory.</text:span></text:p> <text:h text:style-name="Heading_20_3" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2566_1114405012"/><text:span text:style-name="T116">C</text:span><text:span text:style-name="T112">hanging the model job list</text:span><text:bookmark-end text:name="__RefHeading__2566_1114405012"/></text:h> <text:p text:style-name="P44"><text:span text:style-name="T113">U</text:span><text:span text:style-name="T112">sually, the job list is defined in the model setup. The user may chose to add </text:span><text:span text:style-name="T118">jobs </text:span><text:span text:style-name="T112">and delete jobs from this list as appropriate. While adding a job is straightforward, removing a job uses a special section variable '.remove' (note the leading period). It </text:span><text:span text:style-name="T118">is</text:span><text:span text:style-name="T112"> defined in the [jobs] section and contains a list of the jobs to be suppressed.</text:span></text:p> - <text:p text:style-name="P128"># joe1234.config</text:p> + <text:p text:style-name="P128"><text:soft-page-break/># joe1234.config</text:p> <text:p text:style-name="P128">EXP_TYPE = control</text:p> <text:p text:style-name="P128">[jobs]</text:p> <text:p text:style-name="P128"><text:s text:c="2"/>.remove = post, pre</text:p> @@ -2751,12 +2751,12 @@ <text:p text:style-name="P128"><text:s text:c="2"/>[[my_post]]</text:p> <text:p text:style-name="P49">This way, the 'pre' and 'post' jobs will not be created in favor of two new jobs, 'my_pre' and 'my_post'. In this case, the user setup must provide two templates 'joe1234.my_pre.tmpl' and 'joe1234.my_post.tmpl', together with the .config file.</text:p> <text:p text:style-name="P45">Alternatively, you may want to introduce a new 'my_p<text:span text:style-name="T185">ost</text:span>' job, that is basically the same as the old 'p<text:span text:style-name="T185">ost</text:span>' job but uses a slightly different configuration. This may be done using the special section variable '.extends'.</text:p> - <text:p text:style-name="P128"><text:soft-page-break/>[jobs]</text:p> + <text:p text:style-name="P128">[jobs]</text:p> <text:p text:style-name="P142"><text:span text:style-name="T112"><text:s text:c="2"/>[[my_p</text:span><text:span text:style-name="T117">ost</text:span><text:span text:style-name="T112">]]</text:span></text:p> <text:p text:style-name="P142"><text:span text:style-name="T112"><text:s text:c="4"/>.</text:span><text:span text:style-name="T116">extends</text:span><text:span text:style-name="T112"> = p</text:span><text:span text:style-name="T117">ost</text:span></text:p> <text:p text:style-name="P129"><text:s text:c="4"/>command = $HOME/bin/my_special_command</text:p> <text:p text:style-name="P50">With this configuration, an additional 'joe1234.my_post' is created based on the existing 'post' template. A dedicated 'joe1234.my_post.tmpl' file is not needed here. The 'command' setting is <text:span text:style-name="T186">made available </text:span>to <text:span text:style-name="T186">the template via the</text:span> 'JOB' dictionary.</text:p> - <text:h text:style-name="P268" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2568_1114405012"/>Pre-defined job variables<text:bookmark-end text:name="__RefHeading__2568_1114405012"/></text:h> + <text:h text:style-name="P270" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2568_1114405012"/>Pre-defined job variables<text:bookmark-end text:name="__RefHeading__2568_1114405012"/></text:h> <text:p text:style-name="P55">While <text:span text:style-name="T9">mkexp</text:span> in general does not impose any naming convention on the variable names used in the job sections and leaves the details to the respective model setup, there are a few exceptions.</text:p> <text:p text:style-name="P177">tasks</text:p> <text:p text:style-name="P199">The total number of parallel (MPI) tasks that will be started when running the model. If a job section does not define 'tasks', its value defaults to 'nodes' times 'tasks_per_node'. Some models require that 'tasks' may explicitly be set to some artificial value to trigger the testing mode.</text:p> @@ -2764,14 +2764,14 @@ <text:p text:style-name="P199">Number of computing nodes required on the computing system. Needed if 'tasks' is not set.</text:p> <text:p text:style-name="P178">tasks_per_node</text:p> <text:p text:style-name="P199">Number of parallel (MPI) tasks on a single node. Needed if 'tasks' is not set.</text:p> - <text:h text:style-name="P267" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2570_1114405012"/>Overriding namelist settings in derived jobs<text:bookmark-end text:name="__RefHeading__2570_1114405012"/></text:h> - <text:p text:style-name="P50">There is special provision to change namelist files settings for a specific job. Consider this setting from the introductory example.</text:p> + <text:h text:style-name="P269" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2570_1114405012"/>Overriding namelist settings in derived jobs<text:bookmark-end text:name="__RefHeading__2570_1114405012"/></text:h> + <text:p text:style-name="P50">There is special provision to change namelist files settings for a specific job. Consider <text:soft-page-break/>this setting from the introductory example.</text:p> <text:p text:style-name="P143">[namelists]</text:p> <text:p text:style-name="P103"><text:s text:c="2"/>[[namelist.jsbach]]</text:p> <text:p text:style-name="P103"><text:s text:c="4"/>[[[jsbach_ctl]]]</text:p> <text:p text:style-name="P103"><text:s text:c="6"/>use_dynveg = false</text:p> <text:p text:style-name="P46"><text:span text:style-name="T112">If – for some reason – your experiments needs 'use_dynveg' set to 'true' for the first year only, you may create an additional 'run_first' job, </text:span><text:span text:style-name="T118">with a job specific namelists subsection that – apart from the addition</text:span><text:span text:style-name="T120">al</text:span><text:span text:style-name="T118"> brackets – has the same structure as</text:span><text:span text:style-name="T112"> </text:span><text:span text:style-name="T118">the global namelists section.</text:span></text:p> - <text:p text:style-name="P143"><text:soft-page-break/>[jobs]</text:p> + <text:p text:style-name="P143">[jobs]</text:p> <text:p text:style-name="P143"><text:s text:c="2"/>[[run_first]]</text:p> <text:p text:style-name="P143"><text:s text:c="4"/>.extends = run</text:p> <text:p text:style-name="P143"><text:s text:c="4"/><text:span text:style-name="T143">[[[namelists]]</text:span><text:span text:style-name="T152">]</text:span></text:p> @@ -2779,7 +2779,7 @@ <text:p text:style-name="P103"><text:s text:c="8"/><text:span text:style-name="T185">[[</text:span>[[[jsbach_ctl]]]<text:span text:style-name="T185">]]</text:span></text:p> <text:p text:style-name="P103"><text:span text:style-name="T112"><text:s text:c="10"/>use_dynveg = </text:span><text:span text:style-name="T117">true</text:span></text:p> <text:p text:style-name="P46"><text:span text:style-name="T118">This</text:span><text:span text:style-name="T112"> will result in a 'joe1234.run_first' file that is identical to 'joe1234.run' except for the 'use_dynveg' setting.</text:span></text:p> - <text:h text:style-name="P267" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2572_1114405012"/>Native script variables<text:bookmark-end text:name="__RefHeading__2572_1114405012"/></text:h> + <text:h text:style-name="P269" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2572_1114405012"/>Native script variables<text:bookmark-end text:name="__RefHeading__2572_1114405012"/></text:h> <text:p text:style-name="P48"><text:span text:style-name="T112">While the definition of .config variables may use</text:span><text:span text:style-name="T119"> variable references like</text:span><text:span text:style-name="T112"> $NAME or ${NAME} to include the </text:span><text:span text:style-name="T119">verbatim </text:span><text:span text:style-name="T112">value of other .config variables, this may not always be what you want. If you want to create a job </text:span><text:span text:style-name="T119">script</text:span><text:span text:style-name="T112"> that is supposed to be 'user-serviceable' for certain applications, the users will not appreciate having to change the same value several times in the same script. </text:span><text:span text:style-name="T119">Instead they will want to have a single, native script variable that is used throughout the job script, and that may be re-defined on a single line.</text:span></text:p> <text:p text:style-name="P52">To allow this, <text:span text:style-name="T9">mkexp</text:span> locates all expressions like $${NAME} in the configuration values, and re-formats them to the syntax of the current job script:</text:p> <text:p text:style-name="P128"># joe1234.config</text:p> @@ -2790,11 +2790,11 @@ <text:p text:style-name="P132">NAME='%{NAME}'</text:p> <text:p text:style-name="P128">echo %{MESSAGE}</text:p> <text:p text:style-name="P52">By default, <text:span text:style-name="T187">native variables are formatted as </text:span>shell script, namely ${NAME}:</text:p> - <text:p text:style-name="P131">#! /bin/sh</text:p> + <text:p text:style-name="P131"><text:soft-page-break/>#! /bin/sh</text:p> <text:p text:style-name="P134">NAME='Joe User'</text:p> <text:p text:style-name="P130">echo This experiment was generated by ${NAME}</text:p> <text:p text:style-name="P53"><text:span text:style-name="T194">T</text:span>o support variable reference<text:span text:style-name="T193">s for other script languages, a</text:span> job specific variable '.var_format' may be defined. <text:span text:style-name="T193">It defines an output format string where any occurrence of '%s' will be replaced by the respective variable name. </text:span>For a Python based script, <text:span text:style-name="T187">this may look like:</text:span></text:p> - <text:p text:style-name="P133"><text:soft-page-break/># joe1234.config</text:p> + <text:p text:style-name="P133"># joe1234.config</text:p> <text:p text:style-name="P133">NAME = Joe User</text:p> <text:p text:style-name="P133">MESSAGE = This experiment was generated by $${NAME}</text:p> <text:p text:style-name="P145">[jobs]</text:p> @@ -2808,20 +2808,20 @@ <text:p text:style-name="P146">#! /usr/bin/env python </text:p> <text:p text:style-name="P146">NAME = '<text:span text:style-name="T192">Joe User</text:span>' </text:p> <text:p text:style-name="P147">print<text:span text:style-name="T229">(</text:span>'<text:span text:style-name="T112">This experiment was generated by </text:span><text:span text:style-name="T121">' + str(</text:span><text:span text:style-name="T112">NAME) </text:span><text:span text:style-name="T121">+ '</text:span>'<text:span text:style-name="T229">)</text:span></text:p> - <text:h text:style-name="P274" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2574_1114405012"/>Initializing native script variables<text:bookmark-end text:name="__RefHeading__2574_1114405012"/></text:h> + <text:h text:style-name="P276" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2574_1114405012"/>Initializing native script variables<text:bookmark-end text:name="__RefHeading__2574_1114405012"/></text:h> <text:p text:style-name="P61">In the previous section, the native variables were initialized by an addition<text:span text:style-name="T196">al script line. While this is sufficient for a small number of variables, it may be difficult to maintain these initialization lines for a more complex setup with changing requirements.</text:span></text:p> <text:p text:style-name="P61"><text:span text:style-name="T197">To allow a self-maintaining variable list based on the current configuration, </text:span><text:span text:style-name="T20">mkexp</text:span><text:span text:style-name="T197"> maintains the special variable VARIABLES_. When generating output for</text:span></text:p> <text:p text:style-name="P135">NAME = Joe User</text:p> <text:p text:style-name="P136">EMAIL = joe@domain.tld</text:p> <text:p text:style-name="P148"><text:span text:style-name="T112">MESSAGE = This experiment was generated by $${NAME} </text:span><text:span text:style-name="T123"><$${EMAIL}></text:span></text:p> <text:p text:style-name="P62"><text:span text:style-name="T43">mkexp</text:span><text:span text:style-name="T112"> will parse all values, recognize 'NAME' and 'EMAIL' as native variables, and </text:span><text:span text:style-name="T124">will </text:span><text:span text:style-name="T112">put their names in the VARIABLES_ list. Now we may use the 'for' template directive to generate an additional line for each member of VARIABLES_. To query the value for a given variable name, </text:span><text:span text:style-name="T43">mkexp</text:span><text:span text:style-name="T112"> provides the 'context' function, such that the template</text:span></text:p> - <text:p text:style-name="P135">#! /bin/sh</text:p> + <text:p text:style-name="P135"><text:soft-page-break/>#! /bin/sh</text:p> <text:p text:style-name="P136">#%# for <text:span text:style-name="T143">variable</text:span> in <text:span text:style-name="T143">VARIABLES_</text:span>:</text:p> <text:p text:style-name="P136">%{<text:span text:style-name="T143">variable</text:span>}='%{<text:span text:style-name="T143">context(variable)</text:span>}'</text:p> <text:p text:style-name="P136">#%# endfor</text:p> <text:p text:style-name="P136">echo <text:span text:style-name="T189">"</text:span>%{MESSAGE}<text:span text:style-name="T189">"</text:span></text:p> <text:p text:style-name="P54">eventually yields</text:p> - <text:p text:style-name="P135"><text:soft-page-break/>#! /bin/sh</text:p> + <text:p text:style-name="P135">#! /bin/sh</text:p> <text:p text:style-name="P148"><text:span text:style-name="T130">EMAIL</text:span><text:span text:style-name="T134">='</text:span><text:span text:style-name="T130">joe@domain.tld</text:span><text:span text:style-name="T134">'</text:span></text:p> <text:p text:style-name="P148"><text:span text:style-name="T129">NAME</text:span><text:span text:style-name="T133">=</text:span><text:span text:style-name="T134">'</text:span><text:span text:style-name="T129">Joe User</text:span><text:span text:style-name="T134">'</text:span></text:p> <text:p text:style-name="P148"><text:span text:style-name="T123">echo </text:span><text:span text:style-name="T191">"This experiment was generated by ${NAME} <${EMAIL}>"</text:span></text:p> @@ -2832,15 +2832,15 @@ <text:p text:style-name="P127">./update FINAL_DATE=2015-12-31</text:p> <text:p text:style-name="P87">may be used to regenerate scripts with a new final date. Note that these settings are also recorded, i.e. running just './update' the next time will again set FINAL_DATE.</text:p> <text:p text:style-name="P60"><text:span text:style-name="T51">Of course, there is also the possibility to </text:span><text:span text:style-name="T61">change</text:span><text:span text:style-name="T51"> the </text:span><text:span text:style-name="T19">generated</text:span><text:span text:style-name="T60"> </text:span><text:span text:style-name="T51">job scripts directly, and then go on. This is fine as long as the required setting is using a native variable or is otherwise easily editable. On the other hand, </text:span><text:span text:style-name="T62">facing</text:span><text:span text:style-name="T51"> the next </text:span><text:span text:style-name="T62">change,</text:span><text:span text:style-name="T51"> this might not be the case, so eventually you </text:span><text:span text:style-name="T60">may</text:span><text:span text:style-name="T51"> need to re-generate the whole thing. What now about those manual changes to the job scripts?</text:span></text:p> - <text:p text:style-name="P60"><text:span text:style-name="T51">Whenever </text:span><text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51"> sees existing job scripts while trying to generate the new description, it will automatically create backup files. They are placed in a subdirectory of SCRIPT_DIR, named 'backup'. </text:span><text:span text:style-name="T60">Also, the scripts for each regeneration are bundled in their own subdirectory, named after the current date-time stamp. </text:span><text:span text:style-name="T61">This way you may easily compare old and new scripts to evaluate and possibly transfer any manual changes </text:span><text:span text:style-name="T96">after a necessary regeneration</text:span><text:span text:style-name="T61">.</text:span></text:p> + <text:p text:style-name="P60"><text:span text:style-name="T51">Whenever </text:span><text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51"> sees existing job scripts while trying to generate the new description, it will automatically create backup files. They are placed in a subdirectory of SCRIPT_DIR, named 'backup'. </text:span><text:span text:style-name="T60">Also, the scripts for each regeneration are bundled in their own subdirectory, named after the current date-time stamp. </text:span><text:span text:style-name="T61">This way you may </text:span><text:soft-page-break/><text:span text:style-name="T61">easily compare old and new scripts to evaluate and possibly transfer any manual changes </text:span><text:span text:style-name="T96">after a necessary regeneration</text:span><text:span text:style-name="T61">.</text:span></text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2564_1114405012"/>Standard environments<text:bookmark-end text:name="__RefHeading__2564_1114405012"/></text:h> - <text:p text:style-name="P12">The above examples neglect an important feature <text:span text:style-name="T142">of job descriptions, namely the </text:span><text:soft-page-break/><text:span text:style-name="T142">system or machine dependent set up. Different computing centers use different job control software and naming conventions, might provide different versions of the same software at differing locations. This needs to be handled in a way that is independent of the other configuration as far as possible.</text:span></text:p> + <text:p text:style-name="P12">The above examples neglect an important feature <text:span text:style-name="T142">of job descriptions, namely the system or machine dependent set up. Different computing centers use different job control software and naming conventions, might provide different versions of the same software at differing locations. This needs to be handled in a way that is independent of the other configuration as far as possible.</text:span></text:p> <text:p text:style-name="P13">For this, a standard environment, like a standard experiment, consists of a .config file and a corresponding template. The <text:span text:style-name="T9">environmentname</text:span>.config file contains settings like directory paths or a description of machine capacities for job control</text:p> <text:p text:style-name="P13">The actual job control headers needed to run a certain job step are saved as <text:span text:style-name="T9">environmentname</text:span>.tmpl. This template will be filled using configuration information from both experiment, options, and environment. <text:span text:style-name="T156">The resulting job header</text:span> is usually included at the beginning of the experiment's job script templates.</text:p> <text:p text:style-name="P9">An experiment configuration <text:span text:style-name="T198">may</text:span> <text:span text:style-name="T198">set</text:span> the special variable E<text:span text:style-name="T198">NVIRONMENT</text:span> to the name of <text:span text:style-name="T198">the host </text:span>e<text:span text:style-name="T198">nvironment</text:span> to use. <text:span text:style-name="T198">If it is not set, or empty, the 'DEFAULT' environment settings will be used.</text:span></text:p> - <text:h text:style-name="P287" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__1883_1672291846"/>Defining namelists and other configuration files<text:bookmark-end text:name="__RefHeading__1883_1672291846"/></text:h> + <text:h text:style-name="P289" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__1883_1672291846"/>Defining namelists and other configuration files<text:bookmark-end text:name="__RefHeading__1883_1672291846"/></text:h> <text:p text:style-name="P69"><text:span text:style-name="T73">Most models need at least one Fortran namelist file or another form of configuration file to run. </text:span><text:span text:style-name="T74">The special section [namelists] </text:span><text:span text:style-name="T73">is designed to </text:span><text:span text:style-name="T74">contain all information that goes into </text:span><text:span text:style-name="T73">these</text:span><text:span text:style-name="T74"> files. Each </text:span><text:span text:style-name="T71">immediate </text:span><text:span text:style-name="T74">subsection defines settings for a single file that will </text:span><text:span text:style-name="T73">by default be </text:span><text:span text:style-name="T74">formatted as a Fortran namelist. </text:span><text:span text:style-name="T73">For </text:span><text:span text:style-name="T74">example,</text:span></text:p> - <text:p text:style-name="P149">[namelists]</text:p> + <text:p text:style-name="P149"><text:soft-page-break/>[namelists]</text:p> <text:p text:style-name="P159"/> <text:p text:style-name="P149"><text:s text:c="2"/>[[<text:span text:style-name="T210">namelist.echam</text:span>]] </text:p> <text:p text:style-name="P149"><text:s text:c="4"/>[[[runctl]]] </text:p> @@ -2850,8 +2850,8 @@ <text:p text:style-name="P151"><text:s text:c="6"/>out_expname = joe1234</text:p> <text:p text:style-name="P151"><text:s text:c="6"/><text:span text:style-name="T211">dt_stop = 2009, 1, 1, 0, 0, 0</text:span></text:p> <text:p text:style-name="P66"><text:span text:style-name="T51">defines </text:span><text:span text:style-name="T72">a single </text:span><text:span text:style-name="T51">namelist file, </text:span><text:span text:style-name="T75">'namelist.echam'</text:span><text:span text:style-name="T51">, </text:span><text:span text:style-name="T73">containing a single namelist group with four variables of different types. Note </text:span><text:span text:style-name="T92">that you do not </text:span><text:span text:style-name="T73">need to use quotes for strings nor periods for logical values.</text:span></text:p> - <text:h text:style-name="P270" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2578_1114405012"/>Formatting the namelist information<text:bookmark-end text:name="__RefHeading__2578_1114405012"/></text:h> - <text:p text:style-name="P97"><text:span text:style-name="T71">The </text:span><text:span text:style-name="T72">names of the </text:span><text:span text:style-name="T71">subsections of each namelist file entry, i.e. the second level subsections under the immediate subsections of [namelists], are taken as namelist </text:span><text:soft-page-break/><text:span text:style-name="T71">group </text:span><text:span text:style-name="T72">name</text:span><text:span text:style-name="T71">s, and their variables are formatted as fields of this namelist </text:span><text:span text:style-name="T72">group</text:span><text:span text:style-name="T71">. </text:span><text:span text:style-name="T72">In the example above, there is a single namelist group 'runctl', which will be converted to the Fortran namelist convention. </text:span><text:span text:style-name="T210">The values of the group's fields are checked to determine whether they are numerical, logical, or string values. Logical and string values will then be formatted using periods or quotes, respectively.</text:span></text:p> + <text:h text:style-name="P272" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2578_1114405012"/>Formatting the namelist information<text:bookmark-end text:name="__RefHeading__2578_1114405012"/></text:h> + <text:p text:style-name="P97"><text:span text:style-name="T71">The </text:span><text:span text:style-name="T72">names of the </text:span><text:span text:style-name="T71">subsections of each namelist file entry, i.e. the second level subsections under the immediate subsections of [namelists], are taken as namelist group </text:span><text:span text:style-name="T72">name</text:span><text:span text:style-name="T71">s, and their variables are formatted as fields of this namelist </text:span><text:span text:style-name="T72">group</text:span><text:span text:style-name="T71">. </text:span><text:span text:style-name="T72">In the example above, there is a single namelist group 'runctl', which will be converted to the Fortran namelist convention. </text:span><text:span text:style-name="T210">The values of the group's fields are checked to determine whether they are numerical, logical, or string values. Logical and string values will then be formatted using periods or quotes, respectively.</text:span></text:p> <text:p text:style-name="P71"><text:span text:style-name="T230">In the example above, the first four fields are single values of logical, integer, floating point, and string type.</text:span><text:span text:style-name="T75"> The fifth is a list of integer values, that will be passed as such to the namelist file:</text:span></text:p> <text:p text:style-name="P118">&runctl</text:p> <text:p text:style-name="P153"><text:s text:c="4"/>lamip = <text:span text:style-name="T143">.true.</text:span></text:p> @@ -2861,13 +2861,13 @@ <text:p text:style-name="P152"><text:span text:style-name="T75"><text:s text:c="4"/>dt_stop = </text:span><text:span text:style-name="T136">2009, 1, 1, 0, 0, 0</text:span></text:p> <text:p text:style-name="P137">/</text:p> <text:p text:style-name="P98">Please note that both group and field names are converted to lower case! Two fields named 'key' and 'Key' will result in two 'key = …' lines, and will cause trouble. We recommend using lower case for all group and field names.</text:p> - <text:h text:style-name="P279" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2580_1114405012"/><text:span text:style-name="T73">S</text:span><text:span text:style-name="T51">uppressing namelist groups or variables</text:span><text:bookmark-end text:name="__RefHeading__2580_1114405012"/></text:h> + <text:h text:style-name="P281" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2580_1114405012"/><text:span text:style-name="T73">S</text:span><text:span text:style-name="T51">uppressing namelist groups or variables</text:span><text:bookmark-end text:name="__RefHeading__2580_1114405012"/></text:h> <text:p text:style-name="P56">Both the namelist file sections and the namelist group section honor the special variable '.remove' which may be set to a list of names. Any namelist groups listed in the file's '.remove' variable, and any variables listed in the group's '.remove' variable will be deleted from the namelist definition.</text:p> - <text:p text:style-name="P56">The names may contain the usual file wildcards, '*' and '?' to remove a whole range of groups or variables.</text:p> + <text:p text:style-name="P56"><text:soft-page-break/>The names may contain the usual file wildcards, '*' and '?' to remove a whole range of groups or variables.</text:p> <text:p text:style-name="P80"><text:span text:style-name="T51">While '.remove' is useful to </text:span><text:span text:style-name="T82">suppress</text:span><text:span text:style-name="T51"> default settings that must not be present for the experiment setup, currently there is no way to resurrect a removed setting in a later setup level. </text:span><text:span text:style-name="T83">Therefore, its use in model setups is strongly discouraged.</text:span></text:p> - <text:h text:style-name="P271" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2714_1114405012"/>Using the namelist text<text:bookmark-end text:name="__RefHeading__2714_1114405012"/></text:h> + <text:h text:style-name="P273" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2714_1114405012"/>Using the namelist text<text:bookmark-end text:name="__RefHeading__2714_1114405012"/></text:h> <text:p text:style-name="P67"><text:span text:style-name="T73">T</text:span><text:span text:style-name="T75">he </text:span><text:span text:style-name="T64">formatted namelist text </text:span><text:span text:style-name="T51">is </text:span><text:span text:style-name="T75">stor</text:span><text:span text:style-name="T51">ed </text:span><text:span text:style-name="T75">in</text:span><text:span text:style-name="T51"> a global variable </text:span><text:span text:style-name="T75">that may be used by a template placeholder</text:span><text:span text:style-name="T51">. </text:span><text:span text:style-name="T73">This way, </text:span><text:span text:style-name="T51">all job information </text:span><text:span text:style-name="T75">available </text:span><text:span text:style-name="T73">is written to</text:span><text:span text:style-name="T51"> a single script or description file, </text:span><text:span text:style-name="T73">and </text:span><text:span text:style-name="T51">native script variables </text:span><text:span text:style-name="T73">may be used</text:span><text:span text:style-name="T51"> in the namelist definitions.</text:span></text:p> - <text:p text:style-name="P69"><text:soft-page-break/><text:span text:style-name="T64">The name of </text:span><text:span text:style-name="T75">this </text:span><text:span text:style-name="T64">variable</text:span><text:span text:style-name="T65"> </text:span><text:span text:style-name="T75">is</text:span><text:span text:style-name="T64"> generated from </text:span><text:span text:style-name="T75">its</text:span><text:span text:style-name="T64"> </text:span><text:span text:style-name="T65">respective</text:span><text:span text:style-name="T64"> file name, </text:span><text:span text:style-name="T75">like</text:span><text:span text:style-name="T64"> 'namelist.echam', by </text:span><text:span text:style-name="T74">converting all letters to upper case </text:span><text:span text:style-name="T64">(</text:span><text:span text:style-name="T74">namelist.echam →</text:span><text:span text:style-name="T64"> </text:span><text:span text:style-name="T74">NAMELIST.ECHAM</text:span><text:span text:style-name="T64">) </text:span><text:span text:style-name="T65">and </text:span><text:span text:style-name="T64">replacing non-word characters by an underscore (NAMELIST.ECHAM → NAMELIST_ECHAM).</text:span></text:p> + <text:p text:style-name="P69"><text:span text:style-name="T64">The name of </text:span><text:span text:style-name="T75">this </text:span><text:span text:style-name="T64">variable</text:span><text:span text:style-name="T65"> </text:span><text:span text:style-name="T75">is</text:span><text:span text:style-name="T64"> generated from </text:span><text:span text:style-name="T75">its</text:span><text:span text:style-name="T64"> </text:span><text:span text:style-name="T65">respective</text:span><text:span text:style-name="T64"> file name, </text:span><text:span text:style-name="T75">like</text:span><text:span text:style-name="T64"> 'namelist.echam', by </text:span><text:span text:style-name="T74">converting all letters to upper case </text:span><text:span text:style-name="T64">(</text:span><text:span text:style-name="T74">namelist.echam →</text:span><text:span text:style-name="T64"> </text:span><text:span text:style-name="T74">NAMELIST.ECHAM</text:span><text:span text:style-name="T64">) </text:span><text:span text:style-name="T65">and </text:span><text:span text:style-name="T64">replacing non-word characters by an underscore (NAMELIST.ECHAM → NAMELIST_ECHAM).</text:span></text:p> <text:p text:style-name="Preformatted_20_Text"># joe1234.config</text:p> <text:p text:style-name="Preformatted_20_Text">[namelists]</text:p> <text:p text:style-name="Preformatted_20_Text"><text:s text:c="2"/><text:span text:style-name="T143">[[namelist.echam]]</text:span></text:p> @@ -2887,34 +2887,34 @@ <text:p text:style-name="P117">/</text:p> <text:p text:style-name="P108">EOF</text:p> <text:p text:style-name="P70"><text:span text:style-name="T75">Note how this setup uses the native script variable 'EXP_ID' to set the </text:span><text:span text:style-name="T71">namelist contents.</text:span></text:p> - <text:p text:style-name="P70"><text:span text:style-name="T76">As in the example above, the script template is responsible for writing the namelist text to an actual file. </text:span><text:span text:style-name="T75">While in general the namelist file takes the same name as the .config subsection defining it, </text:span><text:span text:style-name="T25">mkexp</text:span><text:span text:style-name="T75"> </text:span><text:span text:style-name="T76">ha</text:span><text:span text:style-name="T75">s currently no way to enforce this. The template needs to be set up accordingly.</text:span></text:p> - <text:h text:style-name="P276" text:outline-level="3">Using native script variables in namelists</text:h> + <text:p text:style-name="P70"><text:span text:style-name="T76">As in the example above, the script template is responsible for writing the namelist text to an actual file. </text:span><text:span text:style-name="T75">While in general the namelist file takes the same name as the .config subsection defining it, </text:span><text:span text:style-name="T25">mkexp</text:span><text:span text:style-name="T75"> </text:span><text:span text:style-name="T76">ha</text:span><text:span text:style-name="T75">s currently no way to enforce this. The </text:span><text:soft-page-break/><text:span text:style-name="T75">template needs to be set up accordingly.</text:span></text:p> + <text:h text:style-name="P278" text:outline-level="3">Using native script variables in namelists</text:h> <text:p text:style-name="P88">When using native script variables in a namelist, it may be necessary to suppress the conversion of values to namelist conventions. Consider</text:p> <text:p text:style-name="P162">[namelists]</text:p> <text:p text:style-name="P162"><text:s text:c="2"/><text:span text:style-name="T235">[[namelist.echam]]</text:span></text:p> <text:p text:style-name="P162"><text:s text:c="4"/><text:span text:style-name="T235">[[[runctl]]]</text:span></text:p> <text:p text:style-name="Preformatted_20_Text_20_Interrupt"><text:s text:c="6"/><text:span text:style-name="T235">dt_stop = $$final_date</text:span></text:p> - <text:p text:style-name="P138"><text:soft-page-break/>final_date='2015, 12, 31, 23, 52, 30'</text:p> + <text:p text:style-name="P138">final_date='2015, 12, 31, 23, 52, 30'</text:p> <text:p text:style-name="P109">cat > namelist.echam << EOF</text:p> <text:p text:style-name="P116">%{NAMELIST_ECHAM}</text:p> <text:p text:style-name="P139">EOF</text:p> <text:p text:style-name="P88">When the text for NAMELIST_ECHAM is generated, <text:span text:style-name="T9">mkexp</text:span><text:span text:style-name="T51"> converts the value of 'dt_stop' to a string surrounded by single quotes (see 'EXP_ID' in the previous example), as '$$final_date' cannot be </text:span><text:span text:style-name="T98">recognized</text:span><text:span text:style-name="T51"> as a numer</text:span><text:span text:style-name="T98">ic</text:span><text:span text:style-name="T51"> or logical value. In the namelist context however it is </text:span><text:span text:style-name="T98">needed</text:span><text:span text:style-name="T51"> as a</text:span><text:span text:style-name="T98">n unquoted</text:span><text:span text:style-name="T51"> list of integers. </text:span><text:span text:style-name="T97">To fix this, simply use the special syntax 'raw(…)' </text:span><text:span text:style-name="T98">around the value:</text:span></text:p> <text:p text:style-name="Preformatted_20_Text"><text:span text:style-name="T98"><text:s text:c="6"/></text:span><text:span text:style-name="T96">dt_stop = </text:span><text:span text:style-name="T98">raw(</text:span><text:span text:style-name="T96">$$final_date</text:span><text:span text:style-name="T98">)</text:span></text:p> <text:p text:style-name="P57">which disables the conversion to a valid namelist value, leaving the correct formatting of the native variable to the script.</text:p> - <text:h text:style-name="P273" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2584_1114405012"/>Non-namelist configuration files<text:bookmark-end text:name="__RefHeading__2584_1114405012"/></text:h> + <text:h text:style-name="P275" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2584_1114405012"/>Non-namelist configuration files<text:bookmark-end text:name="__RefHeading__2584_1114405012"/></text:h> <text:p text:style-name="P81"><text:span text:style-name="T86">A [namelists] subsection may not only define a Fortran namelist file but also a custom format configuration file. </text:span><text:span text:style-name="T84">F</text:span><text:span text:style-name="T51">or any </text:span><text:span text:style-name="T86">of these</text:span><text:span text:style-name="T85"> files, the special section variable '.use_template' m</text:span><text:span text:style-name="T99">ay</text:span><text:span text:style-name="T85"> be set to 'true', </text:span><text:span text:style-name="T99">if </text:span><text:span text:style-name="T86">the model setup provid</text:span><text:span text:style-name="T99">es</text:span><text:span text:style-name="T86"> a template '</text:span><text:span text:style-name="T29">subsection</text:span><text:span text:style-name="T86">.tmpl', </text:span><text:span text:style-name="T99">or to an arbitrary template name, replacing </text:span><text:span text:style-name="T35">subsection,</text:span><text:span text:style-name="T99"> if a template is applicable to more than one section</text:span><text:span text:style-name="T86">. This template is expanded using the subsection's variables to create a suitably formatted text. </text:span><text:span text:style-name="T87">As for genuine namelists, the result is stored in a global variable.</text:span></text:p> <text:h text:style-name="Heading_20_2" text:outline-level="2"><text:bookmark-start text:name="__RefHeading__2831_1132221942"/><text:span text:style-name="T87">D</text:span><text:span text:style-name="T51">efining input files for an experiment</text:span><text:bookmark-end text:name="__RefHeading__2831_1132221942"/></text:h> <text:p text:style-name="P85"><text:span text:style-name="T51">While the namelist files determine the model properties, the model state </text:span><text:span text:style-name="T95">also </text:span><text:span text:style-name="T51">depends on input files for initial and boundary conditions or assimilation data. These files are defined in the [files] special section.</text:span></text:p> - <text:p text:style-name="P95"><text:span text:style-name="T51">Each </text:span><text:span text:style-name="T104">sub</text:span><text:span text:style-name="T51">section may define </text:span><text:span text:style-name="T103">or override </text:span><text:span text:style-name="T51">one of two special variables:</text:span></text:p> + <text:p text:style-name="P95"><text:soft-page-break/><text:span text:style-name="T51">Each </text:span><text:span text:style-name="T104">sub</text:span><text:span text:style-name="T51">section may define </text:span><text:span text:style-name="T103">or override </text:span><text:span text:style-name="T51">one of two special variables:</text:span></text:p> <text:p text:style-name="List_20_Heading"><text:span text:style-name="T51">.</text:span><text:span text:style-name="T102">base_dir</text:span></text:p> <text:p text:style-name="P196">file names are taken to be relative to this directory</text:p> <text:p text:style-name="List_20_Heading"><text:span text:style-name="T51">.</text:span><text:span text:style-name="T102">sub_dir</text:span></text:p> <text:p text:style-name="P223"><text:span text:style-name="T103">file names are taken to be relative to this subdirectory of </text:span><text:span text:style-name="T51">'.base_dir'</text:span></text:p> <text:p text:style-name="P63"><text:span text:style-name="T128">For expanding the resulting file path</text:span><text:span text:style-name="T112">, </text:span><text:span text:style-name="T43">mkexp</text:span><text:span text:style-name="T112"> provides </text:span><text:span text:style-name="T128">a global function:</text:span></text:p> - <text:p text:style-name="P242"><text:span text:style-name="T112">get_file</text:span><text:span text:style-name="T133">(</text:span><text:span text:style-name="T45">section</text:span><text:span text:style-name="T133">, </text:span><text:span text:style-name="T45">name</text:span><text:span text:style-name="T133">)</text:span></text:p> - <text:p text:style-name="P200">returns the full path for file <text:span text:style-name="T9">name</text:span> as given in the <text:span text:style-name="T9">section</text:span> object. Note that <text:span text:style-name="T9">section</text:span> <text:soft-page-break/>is given as object reference, but <text:span text:style-name="T9">name</text:span> is given as a string. <text:span text:style-name="T255">All native script variables are expanded</text:span></text:p> + <text:p text:style-name="P243"><text:span text:style-name="T112">get_file</text:span><text:span text:style-name="T133">(</text:span><text:span text:style-name="T45">section</text:span><text:span text:style-name="T133">, </text:span><text:span text:style-name="T45">name</text:span><text:span text:style-name="T133">)</text:span></text:p> + <text:p text:style-name="P200">returns the full path for file <text:span text:style-name="T9">name</text:span> as given in the <text:span text:style-name="T9">section</text:span> object. Note that <text:span text:style-name="T9">section</text:span> is given as object reference, but <text:span text:style-name="T9">name</text:span> is given as a string. <text:span text:style-name="T255">All native script variables are expanded</text:span></text:p> <text:p text:style-name="P85"><text:span text:style-name="T102">Other than that, t</text:span><text:span text:style-name="T95">here are no restrictions on the content structure of this section, and the job script templates are responsible for converting this content into a suitable script text.</text:span></text:p> - <text:h text:style-name="P269" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2833_1132221942"/>Overriding <text:span text:style-name="T233">input file</text:span>s <text:span text:style-name="T233">for certain</text:span> jobs<text:bookmark-end text:name="__RefHeading__2833_1132221942"/></text:h> + <text:h text:style-name="P271" text:outline-level="3"><text:bookmark-start text:name="__RefHeading__2833_1132221942"/>Overriding <text:span text:style-name="T233">input file</text:span>s <text:span text:style-name="T233">for certain</text:span> jobs<text:bookmark-end text:name="__RefHeading__2833_1132221942"/></text:h> <text:p text:style-name="P51"><text:span text:style-name="T234">As for namelists, t</text:span>here is special provision to change <text:span text:style-name="T233">the [</text:span>files<text:span text:style-name="T233">]</text:span> settings for a specific job. <text:span text:style-name="T233">Let us assume</text:span> <text:span text:style-name="T233">that a model run continues a previous run and reads that run's state from a restart file that may be defined like this:</text:span></text:p> <text:p text:style-name="P144">[<text:span text:style-name="T233">files</text:span>]</text:p> <text:p text:style-name="P104"><text:s text:c="2"/>[[<text:span text:style-name="T233">echam</text:span>]]</text:p> diff --git a/doc/mkexp.pdf b/doc/mkexp.pdf index fc8fcbe074b8740b1494931510b4cd8ed4129ec8..4a633ac691eb33e8053666618660e991e4d3cc0e 100644 Binary files a/doc/mkexp.pdf and b/doc/mkexp.pdf differ diff --git a/package_info.py b/package_info.py index d9668b861abc3ae51f2378b5c85917a2ce3539ca..f877a97a6ed2c0bb681492c5e5d9385485f652f0 100644 --- a/package_info.py +++ b/package_info.py @@ -4,4 +4,4 @@ Information on package name and version full_name = 'Make Experiments!' name = 'mkexp' -version = '1.0.5dev' +version = '1.0.5'