Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jgfouca committed Aug 15, 2017
1 parent 787e7b0 commit f993df0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/xml_schemas/env_mach_pes.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<!-- attributes -->
<xs:attribute name="id" type="xs:NCName"/>
<xs:attribute name="value" type="xs:integer"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="version" type="xs:decimal"/>

<!-- simple elements -->
Expand Down
2 changes: 1 addition & 1 deletion scripts/lib/CIME/XML/env_mach_pes.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def get_total_nodes(self, total_tasks, max_thread_count):

def get_spare_nodes(self, num_nodes):
force_spare_nodes = self.get_value("FORCE_SPARE_NODES")
if force_spare_nodes is not None:
if force_spare_nodes != -999:
return force_spare_nodes

if self.get_value("ALLOCATE_SPARE_NODES"):
Expand Down
1 change: 1 addition & 0 deletions src/drivers/mct/cime_config/config_component.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,7 @@

<entry id="FORCE_SPARE_NODES">
<type>integer</type>
<default_value>-999</default_value>
<group>mach_pes</group>
<file>env_mach_pes.xml</file>
<desc>Force this exact number of spare nodes to be allocated</desc>
Expand Down

0 comments on commit f993df0

Please sign in to comment.