File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff 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 (
You can’t perform that action at this time.
0 commit comments