-
Notifications
You must be signed in to change notification settings - Fork 65
Add capability to parse nested suites in capgen #691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
4c04333
Add capability to parse nested suites using a new version of the XML …
climbfuji bb5d19e
Add nested_suite_test
climbfuji 26bba86
Add doctests to scripts/parse_tools/xml_tools.py, clean up scripts/cc…
climbfuji 7821cef
More cleanups
climbfuji 559c5e7
Merge branch 'develop' of https://github.com/ncar/ccpp-framework into…
climbfuji 648612a
Remove unused test/nested_suite_test/nested_suite_test_reports.py
climbfuji 219f41b
Merge branch 'develop' into feature/nested_suites
climbfuji a500b4e
Merge branch 'develop' of https://github.com/ncar/ccpp-framework into…
climbfuji 0d144ae
Nested suites: prevent infinite recursion, allow file attribute to be…
climbfuji 57acb17
Merge branch 'feature/nested_suites' of https://github.com/climbfuji/…
climbfuji 21623ce
Merge branch 'develop' into feature/nested_suites
climbfuji f336c17
Add capability to insert only a specific group of a nested suite at t…
climbfuji e0d375b
Revert back to only one suite per SDF; fix check for recursive expans…
climbfuji 2877943
In xml_tools.py: collect names of expanded suite and provide to user …
climbfuji 4ac80e4
Remove unused optional attribute lib from schema/suite_v2_0.xsd
climbfuji 1b80a4b
Added tracking and trapping of circular dependencies, partially reverted
afbf356
Remove no-longer-needed logic to inject file attribute for nested sui…
climbfuji File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,159 @@ | ||
| <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> | ||
|
|
||
| <xs:schema elementFormDefault="qualified" | ||
| xmlns:xs="http://www.w3.org/2001/XMLSchema"> | ||
|
|
||
| <!-- identifier types --> | ||
|
|
||
| <xs:simpleType name="version_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[1-9][0-9]*[.][0-9]+"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <xs:simpleType name="fortran_id_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[A-Za-z][A-Za-z0-9_]{0,63}"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <xs:simpleType name="subcycle_type"> | ||
| <xs:restriction base="xs:string"> | ||
| <xs:pattern value="[a-z][a-z0-9_]*"/> | ||
| <xs:pattern value="[1-9][0-9]*"/> | ||
| </xs:restriction> | ||
| </xs:simpleType> | ||
|
|
||
| <!-- attributes --> | ||
|
|
||
| <xs:attribute name="version" type="version_type"/> | ||
|
|
||
| <!-- definition of complex types --> | ||
|
|
||
| <xs:complexType name="scheme_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="lib" type="xs:string" use="optional"/> | ||
| <xs:attribute name="version" type="xs:string" use="optional"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <xs:complexType name="nested_suite_group_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="name" type="xs:string" use="required"/> | ||
| <xs:attribute name="group" type="xs:string" use="required"/> | ||
| <xs:attribute name="file" type="xs:string" use="optional"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <xs:complexType name="nested_suite_type"> | ||
| <xs:simpleContent> | ||
| <xs:extension base="xs:string"> | ||
| <xs:attribute name="name" type="xs:string" use="required"/> | ||
| <xs:attribute name="file" type="xs:string" use="optional"/> | ||
| </xs:extension> | ||
| </xs:simpleContent> | ||
| </xs:complexType> | ||
|
|
||
| <!-- definition of suite elements --> | ||
|
|
||
| <xs:element name="time_split"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="process_split"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="subcycle"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="loop" type="subcycle_type" use="optional"/> | ||
| <xs:attribute name="name" type="xs:string" use="optional"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="subcol"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="gen" type="fortran_id_type" use="required"/> | ||
| <xs:attribute name="avg" type="fortran_id_type" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="group"> | ||
| <xs:complexType> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element ref="time_split"/> | ||
| <xs:element ref="process_split"/> | ||
| <xs:element ref="subcycle"/> | ||
| <xs:element ref="subcol"/> | ||
| <xs:element name="scheme" type="scheme_type"/> | ||
| <xs:element name="nested_suite" type="nested_suite_group_type"/> | ||
| </xs:choice> | ||
| <xs:attribute name="name" type="xs:ID" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="suite"> | ||
| <xs:complexType> | ||
| <xs:sequence> | ||
| <xs:choice minOccurs="0" maxOccurs="1"> | ||
| <xs:element name="init" type="scheme_type"/> | ||
| <xs:element name="initalize" type="scheme_type"/> | ||
| </xs:choice> | ||
| <xs:element ref="group" minOccurs="1" maxOccurs="unbounded"/> | ||
| <xs:choice minOccurs="0" maxOccurs="unbounded"> | ||
| <xs:element name="nested_suite" type="nested_suite_type"/> | ||
| </xs:choice> | ||
| <xs:choice minOccurs="0" maxOccurs="1"> | ||
| <xs:element name="final" type="scheme_type"/> | ||
| <xs:element name="finalize" type="scheme_type"/> | ||
| </xs:choice> | ||
| </xs:sequence> | ||
| <xs:attribute name="name" type="xs:ID" use="required"/> | ||
| <xs:attribute name="lib" type="xs:string" use="optional"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| <xs:element name="suites"> | ||
| <xs:complexType> | ||
| <xs:sequence> | ||
| <xs:element ref="suite" minOccurs="1" maxOccurs="unbounded"/> | ||
| </xs:sequence> | ||
| <xs:attribute name="version" type="version_type" use="required"/> | ||
| </xs:complexType> | ||
| </xs:element> | ||
|
|
||
| </xs:schema> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.