Skip to content

Commit

Permalink
Merge pull request #61 from christopherwharrop/feature/enable-custom-…
Browse files Browse the repository at this point in the history
…cores-option

Feature/enable custom cores option
  • Loading branch information
christopherwharrop authored May 29, 2019
2 parents 76485a5 + 6f8ae27 commit 0dd987a
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 0dd987a

Please sign in to comment.