コード例 #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
ファイル: env_batch.py プロジェクト: ekluzek/cime
 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
ファイル: env_test.py プロジェクト: sjsprecious/cime
 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
ファイル: env_mach_pes.py プロジェクト: apcraig/cime
 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
ファイル: env_mach_specific.py プロジェクト: quantheory/cime
 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
ファイル: env_run.py プロジェクト: fischer-ncar/cime
    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
ファイル: env_mach_pes.py プロジェクト: lxu16/origin
 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
ファイル: env_mach_specific.py プロジェクト: apcraig/cime
 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
ファイル: env_run.py プロジェクト: yelizy/cime
    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
ファイル: env_batch.py プロジェクト: cacraigucar/cime-cacraig
 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
ファイル: env_mach_specific.py プロジェクト: gdicker1/cime
 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
ファイル: env_batch.py プロジェクト: Katetc/cime
 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
ファイル: env_mach_pes.py プロジェクト: jtruesdal/cime
    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
ファイル: env_build.py プロジェクト: cacraigucar/cime-cacraig
 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
ファイル: env_test.py プロジェクト: fischer-ncar/cime
 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
ファイル: env_archive.py プロジェクト: Katetc/cime
 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)