Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards4b committed May 3, 2017
1 parent e90430a commit 91150de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/lib/CIME/XML/machines.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from CIME.XML.standard_module_setup import *
from CIME.XML.generic_xml import GenericXML
from CIME.XML.files import Files
from CIME.utils import convert_to_unknown_type
from CIME.utils import convert_to_unknown_type, get_model

import socket

Expand Down Expand Up @@ -256,7 +256,7 @@ def is_valid_MPIlib(self, mpilib, attributes=None):
>>> machobj.is_valid_MPIlib("fake-mpi")
False
"""
model = CIME.utils.get_model()
model = get_model()
return (model == "cesm" and mpilib == "mpi-serial") or \
self.get_field_from_list("MPILIBS", reqval=mpilib, attributes=attributes) is not None

Expand Down

0 comments on commit 91150de

Please sign in to comment.