Skip to content

Commit

Permalink
temp fix casper CIME_OUTPUT_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
alperaltuntas committed Oct 28, 2024
1 parent 93dcc51 commit 2675dcc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion visualCaseGen/cime_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ def _retrieve_machines(self):

# casper jupyter hub patch
fqdn = socket.getfqdn()
if fqdn.startswith("crhtc") and fqdn.endswith("hpc.ucar.edu"):
if (fqdn.startswith("crhtc") or fqdn.startswith("casper")) and fqdn.endswith("hpc.ucar.edu"):
self.machine = "casper"

machines_obj = Machines(machs_file, machine=self.machine)
Expand All @@ -520,6 +520,11 @@ def _retrieve_machines(self):
root=machine_node, name="CIME_OUTPUT_ROOT"
)
self.cime_output_root = machines_obj.text(cime_output_root_node)

# TODO: get rid of this casper fix by properly setting CIME_OUTPUT_ROOT in casper/config_machines.xml
if self.machine == "casper":
self.cime_output_root = "/glade/derecho/scratch/$USER"

self.cime_output_root = self.expand_env_vars(self.cime_output_root)
if self.cime_output_root is None:
logger.error(
Expand Down

0 comments on commit 2675dcc

Please sign in to comment.