コード例 #1
0
class EnkfPrototype(Prototype):
    lib = res.load("libenkf")

    def __init__(self, prototype, bind=True):
        super(EnkfPrototype, self).__init__(EnkfPrototype.lib,
                                            prototype,
                                            bind=bind)
コード例 #2
0
ファイル: __init__.py プロジェクト: ReedOnly/libres
class SchedulePrototype(Prototype):
    lib = res.load("libsched")

    def __init__(self, prototype, bind=True):
        super(SchedulePrototype, self).__init__(SchedulePrototype.lib,
                                                prototype,
                                                bind=bind)
コード例 #3
0
class ConfigPrototype(Prototype):
    lib = res.load("libconfig")

    def __init__(self, prototype, bind=True):
        super(ConfigPrototype, self).__init__(ConfigPrototype.lib,
                                              prototype,
                                              bind=bind)
コード例 #4
0
class ResUtilPrototype(Prototype):
    lib = res.load("libres_util")

    def __init__(self, prototype, bind=True):
        super(ResUtilPrototype, self).__init__(ResUtilPrototype.lib,
                                               prototype,
                                               bind=bind)
コード例 #5
0
ファイル: __init__.py プロジェクト: jokva/ert
class QueuePrototype(Prototype):
    lib = res.load("libjob_queue")

    def __init__(self, prototype, bind=True):
        super(QueuePrototype, self).__init__(QueuePrototype.lib,
                                             prototype,
                                             bind=bind)
コード例 #6
0
import res.analysis
import res.sched
import res.config
import res.job_queue


class EnkfPrototype(Prototype):
    lib = res.load("libenkf")

    def __init__(self, prototype, bind=True):
        super(EnkfPrototype, self).__init__(EnkfPrototype.lib,
                                            prototype,
                                            bind=bind)


ENKF_LIB = res.load("libenkf")

from .enums import *

from .node_id import NodeId

from .enkf_linalg import EnkfLinalg
from .util import TimeMap
from .state_map import StateMap
from .summary_key_set import SummaryKeySet
from .summary_key_matcher import SummaryKeyMatcher
from .custom_kw_config_set import CustomKWConfigSet
from .enkf_fs import EnkfFs

from .ert_workflow_list import ErtWorkflowList
from .active_list import ActiveList
コード例 #7
0
import res
import ecl.util
import ecl.util.geometry
import ecl

RMS_LIB = res.load("librms")
コード例 #8
0
import res

def setenv( var, value):
    if not os.getenv(var):
        os.environ[var] = value

# Set up the full LSF environment - based onf LSF_HOME
LSF_HOME = os.getenv("LSF_HOME")
if LSF_HOME:
    setenv("LSF_BINDIR", "%s/bin" % LSF_HOME)
    setenv("LSF_LIBDIR", "%s/lib" % LSF_HOME)
    setenv("XLSF_UIDDIR", "%s/lib/uid" % LSF_HOME)
    setenv("LSF_SERVERDIR", "%s/etc" % LSF_HOME)
    setenv("LSF_ENVDIR", "%s/conf" % LSF_HOME)   # This is wrong: Statoil: /prog/LSF/conf

JOB_QUEUE_LIB = res.load("libjob_queue")

class QueuePrototype(Prototype):
    lib = res.load("libjob_queue")

    def __init__(self, prototype, bind=True):
        super(QueuePrototype, self).__init__(QueuePrototype.lib, prototype, bind=bind)

    
#from .job_status_type_enum import JobStatusType
from .job_status_type_enum import JobStatusType
from .job import Job
from .queue import JobQueue
from .job_queue_manager import JobQueueManager
from .driver import QueueDriverEnum, Driver, LSFDriver, RSHDriver, LocalDriver
from .ext_job import ExtJob
コード例 #9
0
ファイル: __init__.py プロジェクト: ReedOnly/libres
#  (at your option) any later version.
#
#  ERT is distributed in the hope that it will be useful, but WITHOUT ANY
#  WARRANTY; without even the implied warranty of MERCHANTABILITY or
#  FITNESS FOR A PARTICULAR PURPOSE.
#
#  See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html>
#  for more details.
import res
import ecl
import ecl.util
import ecl.util.geometry

from cwrap import Prototype


class SchedulePrototype(Prototype):
    lib = res.load("libsched")

    def __init__(self, prototype, bind=True):
        super(SchedulePrototype, self).__init__(SchedulePrototype.lib,
                                                prototype,
                                                bind=bind)


SCHED_LIB = res.load("libsched")

from .sched_file import SchedFile
from .history_source_enum import HistorySourceEnum
from .history import History
コード例 #10
0
ファイル: __init__.py プロジェクト: jokva/ert
class AnalysisPrototype(Prototype):
    lib = res.load("libanalysis")

    def __init__(self, prototype, bind=True):
        super(AnalysisPrototype, self).__init__(AnalysisPrototype.lib, prototype, bind=bind)
コード例 #11
0
ファイル: __init__.py プロジェクト: jokva/ert
#  it under the terms of the GNU General Public License as published by 
#  the Free Software Foundation, either version 3 of the License, or 
#  (at your option) any later version. 
#   
#  ERT is distributed in the hope that it will be useful, but WITHOUT ANY 
#  WARRANTY; without even the implied warranty of MERCHANTABILITY or 
#  FITNESS FOR A PARTICULAR PURPOSE.   
#   
#  See the GNU General Public License at <http://www.gnu.org/licenses/gpl.html> 
#  for more details. 


import res
from cwrap import Prototype
import ecl.util

class AnalysisPrototype(Prototype):
    lib = res.load("libanalysis")

    def __init__(self, prototype, bind=True):
        super(AnalysisPrototype, self).__init__(AnalysisPrototype.lib, prototype, bind=bind)



ANALYSIS_LIB = res.load("libanalysis")

from .enums import AnalysisModuleOptionsEnum, AnalysisModuleLoadStatusEnum

from .analysis_module import AnalysisModule
from .linalg import Linalg
コード例 #12
0
class TestConfigPrototype(Prototype):
    lib = res.load("libconfig")

    def __init__(self, prototype, bind=False):
        super(TestConfigPrototype, self).__init__(TestConfigPrototype.lib, prototype, bind=bind)