Пример #1
0
 def __init__(self, case_root=None, infile="env_mach_pes.xml", components=None):
     """
     initialize an object interface to file env_mach_pes.xml in the case directory
     """
     self._components = components
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_pes.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #2
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
     self.prereq_jobid = None
     self.batchtype = None
Пример #3
0
 def __init__(
     self, case_root=None, infile="env_test.xml", components=None, read_only=False
 ):
     """
     initialize an object interface to file env_test.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile, read_only=read_only)
Пример #4
0
 def __init__(self, caseroot, infile="env_mach_specific.xml"):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     fullpath = infile if os.path.isabs(infile) else os.path.join(
         caseroot, infile)
     EnvBase.__init__(self, caseroot, fullpath)
Пример #5
0
    def __init__(self,
                 caseroot=None,
                 infile="env_mach_specific.xml",
                 components=None,
                 unit_testing=False,
                 read_only=False,
                 standalone_configure=False,
                 comp_interface=None):
        """
        initialize an object interface to file env_mach_specific.xml in the case directory

        Notes on some arguments:
        standalone_configure: logical - whether this is being called from the standalone
            configure utility, outside of a case
        """
        schema = os.path.join(get_cime_root(), "config", "xml_schemas",
                              "env_mach_specific.xsd")
        EnvBase.__init__(self,
                         caseroot,
                         infile,
                         schema=schema,
                         read_only=read_only)
        self._allowed_mpi_attributes = ("compiler", "mpilib", "threaded",
                                        "unit_testing", "queue",
                                        "comp_interface")
        self._comp_interface = comp_interface
        self._unit_testing = unit_testing
        self._standalone_configure = standalone_configure
Пример #6
0
 def __init__(self, case_root=None, infile="env_mach_pes.xml", components=None):
     """
     initialize an object interface to file env_mach_pes.xml in the case directory
     """
     self._components = components
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_pes.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #7
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
     self.prereq_jobid = None
     self.batchtype = None
Пример #8
0
 def __init__(self, case_root=None, infile="env_archive.xml"):
     """
     initialize an object interface to file env_archive.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas",
                           "env_archive.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #9
0
 def __init__(
     self, case_root=None, infile="env_case.xml", components=None, read_only=False
 ):
     """
     initialize an object interface to file env_case.xml in the case directory
     """
     schema = os.path.join(utils.get_schema_path(), "env_entry_id.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema, read_only=read_only)
Пример #10
0
 def __init__(self, caseroot, infile="env_mach_specific.xml"):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     fullpath = infile if os.path.isabs(infile) else os.path.join(caseroot, infile)
     EnvBase.__init__(self, caseroot, fullpath)
     self._cshscript = []
     self._shscript = []
Пример #11
0
 def __init__(self,
              case_root=None,
              infile="env_build.xml",
              components=None):
     """
     initialize an object interface to file env_build.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
Пример #12
0
    def __init__(self, case_root=None, infile="env_run.xml", components=None, read_only=False):
        """
        initialize an object interface to file env_run.xml in the case directory
        """
        self._components = components
        schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_entry_id.xsd")

        EnvBase.__init__(self, case_root, infile, schema=schema, read_only=read_only)
Пример #13
0
 def __init__(self, case_root=None, infile="env_mach_pes.xml", components=None):
     """
     initialize an object interface to file env_mach_pes.xml in the case directory
     """
     self._components = components
     self._component_value_list = ["NTASKS", "NTHRDS", "NINST",
                                   "ROOTPE", "PSTRID", "NINST_LAYOUT"]
     EnvBase.__init__(self, case_root, infile)
Пример #14
0
 def __init__(self, caseroot=None, infile="env_mach_specific.xml",
              components=None, unit_testing=False):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_specific.xsd")
     EnvBase.__init__(self, caseroot, infile, schema=schema)
     self._allowed_mpi_attributes = ("compiler", "mpilib", "threaded", "unit_testing")
     self._unit_testing = unit_testing
Пример #15
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     self.prereq_jobid = None
     self.batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
     EnvBase.__init__(self, case_root, infile)
Пример #16
0
    def __init__(self, case_root=None, infile="env_run.xml", components=None, read_only=False):
        """
        initialize an object interface to file env_run.xml in the case directory
        """
        self._components = components
        self._pio_async_interface = False
        schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_entry_id.xsd")

        EnvBase.__init__(self, case_root, infile, schema=schema, read_only=read_only)
Пример #17
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     self._batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_batch.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #18
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
     self.prereq_jobid = None
     self.batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
Пример #19
0
 def __init__(self, caseroot=None, infile="env_mach_specific.xml",
              components=None, unit_testing=False, read_only=False):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_mach_specific.xsd")
     EnvBase.__init__(self, caseroot, infile, schema=schema, read_only=read_only)
     self._allowed_mpi_attributes = ("compiler", "mpilib", "threaded", "unit_testing", "queue")
     self._unit_testing = unit_testing
Пример #20
0
 def __init__(self, case_root=None, infile="env_batch.xml"):
     """
     initialize an object interface to file env_batch.xml in the case directory
     """
     self._batchtype = None
     # This arbitrary setting should always be overwritten
     self._default_walltime = "00:20:00"
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_batch.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #21
0
 def __init__(self, case_root=None, infile="env_run.xml", components=None):
     """
     initialize an object interface to file env_run.xml in the case directory
     """
     self._components = components
     self._component_value_list = [
         "PIO_TYPENAME", "PIO_STRIDE", "PIO_REARRANGER", "PIO_NUMTASKS",
         "PIO_ROOT"
     ]
     EnvBase.__init__(self, case_root, infile)
Пример #22
0
 def __init__(self,
              caseroot=None,
              infile="env_mach_specific.xml",
              components=None,
              unit_testing=False):
     """
     initialize an object interface to file env_mach_specific.xml in the case directory
     """
     fullpath = infile if os.path.isabs(infile) else os.path.join(
         caseroot, infile)
     EnvBase.__init__(self, caseroot, fullpath)
     self._unit_testing = unit_testing
Пример #23
0
    def __init__(self, case_root=None, infile="env_run.xml", components=None):
        """
        initialize an object interface to file env_run.xml in the case directory
        """
        self._components = components
        self._component_value_list = [
            "PIO_TYPENAME", "PIO_STRIDE", "PIO_REARRANGER", "PIO_NUMTASKS",
            "PIO_ROOT", "PIO_NETCDF_FORMAT"
        ]
        schema = os.path.join(get_cime_root(), "config", "xml_schemas",
                              "env_entry_id.xsd")

        EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #24
0
 def __init__(self,
              case_root=None,
              infile="env_mach_pes.xml",
              components=None):
     """
     initialize an object interface to file env_mach_pes.xml in the case directory
     """
     self._components = components
     self._component_value_list = [
         "NTASKS", "NTHRDS", "NINST", "ROOTPE", "PSTRID", "NINST_LAYOUT"
     ]
     schema = os.path.join(get_cime_root(), "config", "xml_schemas",
                           "env_mach_pes.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)
Пример #25
0
    def __init__(
        self,
        case_root=None,
        infile="env_mach_pes.xml",
        components=None,
        read_only=False,
        comp_interface="mct",
    ):
        """
        initialize an object interface to file env_mach_pes.xml in the case directory
        """
        self._components = components
        self._comp_interface = comp_interface

        schema = os.path.join(utils.get_schema_path(), "env_mach_pes.xsd")
        EnvBase.__init__(self,
                         case_root,
                         infile,
                         schema=schema,
                         read_only=read_only)
Пример #26
0
 def __init__(self, case_root=None, infile="env_build.xml"):
     """
     initialize an object interface to file env_build.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
Пример #27
0
 def __init__(self, case_root=None, infile="env_run.xml"):
     """
     initialize an object interface to file env_run.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile)
Пример #28
0
 def __init__(self, case_root=None, infile="env_test.xml", components=None, read_only=False):
     """
     initialize an object interface to file env_test.xml in the case directory
     """
     EnvBase.__init__(self, case_root, infile, read_only=read_only)
Пример #29
0
 def __init__(self, case_root=None, infile="env_archive.xml"):
     """
     initialize an object interface to file env_archive.xml in the case directory
     """
     schema = os.path.join(get_cime_root(), "config", "xml_schemas", "env_archive.xsd")
     EnvBase.__init__(self, case_root, infile, schema=schema)