Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions cime_config/cam.case_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@

logger = logging.getLogger(__name__)

if len(sys.argv) != 3:
if len(sys.argv) != 4:
raise SystemExit(f"Incorrect call to {sys.argv[0]}, need CAM root and case root")
# end if
cam_root = sys.argv[1]
case_root = sys.argv[2]
non_local = sys.argv[3] == 'True'

with Case(case_root) as case:
with Case(case_root, non_local=non_local) as case:
cam_config = case.get_value('CAM_CONFIG_OPTS')
# Gather case information (from _build_usernl_files in case_setup.py)
comp_interface = case.get_value("COMP_INTERFACE")
Expand Down