Skip to content

Commit

Permalink
needed on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed Feb 14, 2025
1 parent ef1c345 commit 1934b15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CIME/XML/env_mach_specific.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from CIME.XML.env_base import EnvBase
from CIME import utils
from CIME.utils import transform_vars, get_cime_root
import string, resource
import string, resource, platform
from collections import OrderedDict

logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -151,6 +151,10 @@ def load_env(self, case, force_method=None, job=None, verbose=False):
def _get_resources_for_case(self, case):
resource_nodes = self.get_children("resource_limits")
if resource_nodes is not None:
expect(
platform.system() != "Darwin",
"Mac OS does not support setting resource limits",
)
nodes = self._compute_resource_actions(resource_nodes, case)
for name, val in nodes:
attr = getattr(resource, name)
Expand Down

0 comments on commit 1934b15

Please sign in to comment.