How to use the ert.cwrap.clib.ert_load function in ert

To help you get started, we’ve selected a few ert examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Ensembles / ert / devel / python / python / ert / job_queue / libjob_queue.py View on Github external
clib.load("libnsl.so.1")
    if LSF_LIBDIR:
        clib.load("%s/liblsf.so" % LSF_LIBDIR)
        clib.load("%s/libbat.so" % LSF_LIBDIR)
    else:
        clib.load( "liblsf.so" )
        clib.load( "libbat.so" )
    HAVE_LSF = True
except:
    HAVE_LSF = False


# 3: Loading the libjob_queue library, which might (depending on the
#    value of INCLUDE_LSF used when building) depend on the LSF
#    libraries we tried to load at the previous step.
clib.ert_load("libconfig.so" )
try:
    lib  = clib.ert_load("libjob_queue.so")
except:
    if HAVE_LSF == False:
        sys.stderr.write("** Failed to load the libjob_queue library, \n")
        sys.stderr.write("** have previosuly failed to load the LSF\n")
        sys.stderr.write("** libraries liblsf & libbat - that might be\n")
        sys.stderr.write("** the reason ... ")
        if LSF_LIBDIR:
            sys.stderr.write("** LSF_LIBDIR = %s\n" % LSF_LIBDIR)
        else:
            sys.stderr.write("** LSF_LIBDIR = \n")
    sys.exit("Failed to load library: libjob_queue")
github Ensembles / ert / devel / python / python / ert / sched / __init__.py View on Github external
#  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 
#  for more details.
from ert.cwrap import clib

import ert.ecl
import ert.util
import ert.geo

SCHED_LIB = clib.ert_load("libsched")


from .sched_file import SchedFile
from .history_source_enum import HistorySourceEnum
from .history import History
github Ensembles / ert / devel / python / python / ert / config / __init__.py View on Github external
#  ERT is free software: you can redistribute it and/or modify
#  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 
#  for more details.
from ert.cwrap import clib, Prototype
import ert.util

class ConfigPrototype(Prototype):
    lib = clib.ert_load("libconfig")

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

from .unrecognized_enum import UnrecognizedEnum
from .content_type_enum import ContentTypeEnum
from .config_error import ConfigError
from .config_content import ConfigContent , ContentItem, ContentNode
from .config_parser import ConfigParser, SchemaItem
github Ensembles / ert / devel / python / python / ert / analysis / __init__.py View on Github external
#  for more details. 


import ert.cwrap.clib as clib
from ert.cwrap.metacwrap import Prototype
import ert.util

class AnalysisPrototype(Prototype):
    lib = clib.ert_load("libanalysis")

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



ANALYSIS_LIB = clib.ert_load("libanalysis")

from .enums import AnalysisModuleOptionsEnum, AnalysisModuleLoadStatusEnum

from .analysis_module import AnalysisModule
from .linalg import Linalg
github OPM / ResInsight / ThirdParty / Ert / devel / python / python / ert / enkf / __init__.py View on Github external
import ert.ecl
import ert.rms
import ert.analysis
import ert.sched
import ert.config
import ert.job_queue

class EnkfPrototype(Prototype):
    lib = clib.ert_load("libenkf")

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

        

ENKF_LIB = clib.ert_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
from .config import *
github Ensembles / ert / devel / python / python / ert / rms / librms.py View on Github external
#  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  
#  for more details. 


import ert.cwrap.clib as clib
from ert.ecl import ECL_LIB

lib = clib.ert_load("librms.so")
github equinor / libecl / devel / python / python / ert / config / __init__.py View on Github external
#  ERT is free software: you can redistribute it and/or modify
#  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 
#  for more details.
from ert.cwrap import clib, Prototype
import ert.util

class ConfigPrototype(Prototype):
    lib = clib.ert_load("libconfig")

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

from .unrecognized_enum import UnrecognizedEnum
from .content_type_enum import ContentTypeEnum
from .config_error import ConfigError
from .config_content import ConfigContent , ContentItem, ContentNode
from .config_parser import ConfigParser, SchemaItem