Skip to content

Commit 2675dcc

Browse files
committed
temp fix casper CIME_OUTPUT_ROOT
1 parent 93dcc51 commit 2675dcc

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

visualCaseGen/cime_interface.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ def _retrieve_machines(self):
495495

496496
# casper jupyter hub patch
497497
fqdn = socket.getfqdn()
498-
if fqdn.startswith("crhtc") and fqdn.endswith("hpc.ucar.edu"):
498+
if (fqdn.startswith("crhtc") or fqdn.startswith("casper")) and fqdn.endswith("hpc.ucar.edu"):
499499
self.machine = "casper"
500500

501501
machines_obj = Machines(machs_file, machine=self.machine)
@@ -520,6 +520,11 @@ def _retrieve_machines(self):
520520
root=machine_node, name="CIME_OUTPUT_ROOT"
521521
)
522522
self.cime_output_root = machines_obj.text(cime_output_root_node)
523+
524+
# TODO: get rid of this casper fix by properly setting CIME_OUTPUT_ROOT in casper/config_machines.xml
525+
if self.machine == "casper":
526+
self.cime_output_root = "/glade/derecho/scratch/$USER"
527+
523528
self.cime_output_root = self.expand_env_vars(self.cime_output_root)
524529
if self.cime_output_root is None:
525530
logger.error(

0 commit comments

Comments
 (0)