Skip to content

Commit

Permalink
Enable capability to provide cores/nodes request via a <native> tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherwharrop-noaa committed May 29, 2019
1 parent fac5d74 commit 6f8ae27
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 32 deletions.
39 changes: 23 additions & 16 deletions lib/workflowmgr/schema_with_metatasks.rng
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,30 @@
</element>
</optional>

<!-- Either one cores tag or one nodes tag-->
<!-- Either one cores tag or one nodes or at least one native tag is required-->
<choice>
<element name="cores">
<data type="positiveInteger"/>
</element>
<element name="nodes">
<data type="string"/>
</element>
<interleave>
<choice>
<element name="cores">
<data type="positiveInteger"/>
</element>
<element name="nodes">
<data type="string"/>
</element>
</choice>
<optional>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</optional>
</interleave>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</choice>

<!-- One walltime tag -->
Expand Down Expand Up @@ -518,15 +534,6 @@
</element>
</optional>

<!-- One or more native tags -->
<optional>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</optional>

<!-- Optional nodesize tag -->
<optional>
<element name="nodesize">
Expand Down
39 changes: 23 additions & 16 deletions lib/workflowmgr/schema_without_metatasks.rng
Original file line number Diff line number Diff line change
Expand Up @@ -446,14 +446,30 @@
</element>
</optional>

<!-- Either one cores tag or one nodes tag-->
<!-- Either one cores tag or one nodes or at least one native tag is required-->
<choice>
<element name="cores">
<data type="positiveInteger"/>
</element>
<element name="nodes">
<data type="string"/>
</element>
<interleave>
<choice>
<element name="cores">
<data type="positiveInteger"/>
</element>
<element name="nodes">
<data type="string"/>
</element>
</choice>
<optional>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</optional>
</interleave>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</choice>

<!-- One walltime tag -->
Expand Down Expand Up @@ -499,15 +515,6 @@
</element>
</optional>

<!-- Zero or more native tags -->
<optional>
<oneOrMore>
<element name="native">
<ref name="compoundTimeString"/>
</element>
</oneOrMore>
</optional>

<!-- Optional nodesize tag -->
<optional>
<element name="nodesize">
Expand Down

0 comments on commit 6f8ae27

Please sign in to comment.