# This file was automatically generated by SWIG (http://www.swig.org).
# Version 3.0.12
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.

"""

PyTrilinos.Isorropia is the python interface to the Trilinos
partitioning and load balancing package Isorropia:

    http://trilinos.sandia.gov/packages/isorropia

The purpose of Isorropia is to ....

"""


from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
    def swig_import_helper():
        import importlib
        pkg = __name__.rpartition('.')[0]
        mname = '.'.join((pkg, '___init__')).lstrip('.')
        try:
            return importlib.import_module(mname)
        except ImportError:
            return importlib.import_module('___init__')
    ___init__ = swig_import_helper()
    del swig_import_helper
elif _swig_python_version_info >= (2, 6, 0):
    def swig_import_helper():
        from os.path import dirname
        import imp
        fp = None
        try:
            fp, pathname, description = imp.find_module('___init__', [dirname(__file__)])
        except ImportError:
            import ___init__
            return ___init__
        try:
            _mod = imp.load_module('___init__', fp, pathname, description)
        finally:
            if fp is not None:
                fp.close()
        return _mod
    ___init__ = swig_import_helper()
    del swig_import_helper
else:
    import ___init__
del _swig_python_version_info

try:
    _swig_property = property
except NameError:
    pass  # Python < 2.2 doesn't have 'property'.

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
    if (name == "thisown"):
        return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'SwigPyObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name, None)
    if method:
        return method(self, value)
    if (not static):
        if _newclass:
            object.__setattr__(self, name, value)
        else:
            self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)


def _swig_setattr(self, class_type, name, value):
    return _swig_setattr_nondynamic(self, class_type, name, value, 0)


def _swig_getattr(self, class_type, name):
    if (name == "thisown"):
        return self.this.own()
    method = class_type.__swig_getmethods__.get(name, None)
    if method:
        return method(self)
    raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))


def _swig_repr(self):
    try:
        strthis = "proxy of " + self.this.__repr__()
    except __builtin__.Exception:
        strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

try:
    _object = object
    _newclass = 1
except __builtin__.Exception:
    class _object:
        pass
    _newclass = 0

try:
    import weakref
    weakref_proxy = weakref.proxy
except __builtin__.Exception:
    weakref_proxy = lambda x: x


import PyTrilinos.Teuchos

def Isorropia_Version(*args):
    """Isorropia_Version() -> std::string"""
    return ___init__.Isorropia_Version(*args)

__version__ = Isorropia_Version().split()[3]

class Operator(_object):
    """Proxy of C++ Isorropia::Operator class."""

    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Operator, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Operator, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_Operator

    def setParameters(self, *args):
        """setParameters(Operator self, ParameterList paramlist)"""
        return ___init__.Operator_setParameters(self, *args)


    def compute(self, *args):
        """compute(Operator self, bool forceRecomputing=False)"""
        return ___init__.Operator_compute(self, *args)


    def alreadyComputed(self, *args):
        """alreadyComputed(Operator self) -> bool"""
        return ___init__.Operator_alreadyComputed(self, *args)


    def numProperties(self, *args):
        """numProperties(Operator self) -> int"""
        return ___init__.Operator_numProperties(self, *args)


    def numLocalProperties(self, *args):
        """numLocalProperties(Operator self) -> int"""
        return ___init__.Operator_numLocalProperties(self, *args)


    def numElemsWithProperty(self, *args):
        """numElemsWithProperty(Operator self, int property) -> int"""
        return ___init__.Operator_numElemsWithProperty(self, *args)


    def elemsWithProperty(self, *args):
        """elemsWithProperty(Operator self, int property, int * elementList, int len)"""
        return ___init__.Operator_elemsWithProperty(self, *args)


    def extractPropertiesView(self, *args):
        """extractPropertiesView(Operator self, int & size, int const *& array) -> int"""
        return ___init__.Operator_extractPropertiesView(self, *args)


    def extractPropertiesCopy(self, *args):
        """extractPropertiesCopy(Operator self, int len, int & size, int * array) -> int"""
        return ___init__.Operator_extractPropertiesCopy(self, *args)

Operator_swigregister = ___init__.Operator_swigregister
Operator_swigregister(Operator)

class Colorer(Operator):
    """Proxy of C++ Isorropia::Colorer class."""

    __swig_setmethods__ = {}
    for _s in [Operator]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Colorer, name, value)
    __swig_getmethods__ = {}
    for _s in [Operator]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, Colorer, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_Colorer

    def color(self, *args):
        """color(Colorer self, bool forceColoring=False)"""
        return ___init__.Colorer_color(self, *args)


    def numColors(self, *args):
        """numColors(Colorer self) -> int"""
        return ___init__.Colorer_numColors(self, *args)


    def numElemsWithColor(self, *args):
        """numElemsWithColor(Colorer self, int theColor) -> int"""
        return ___init__.Colorer_numElemsWithColor(self, *args)


    def extractColorsView(self, *args):
        """extractColorsView(Colorer self, int & size, int const *& array) -> int"""
        return ___init__.Colorer_extractColorsView(self, *args)


    def extractColorsCopy(self, *args):
        """extractColorsCopy(Colorer self, int len, int & size, int * array) -> int"""
        return ___init__.Colorer_extractColorsCopy(self, *args)


    def elemsWithColor(self, *args):
        """elemsWithColor(Colorer self, int color) -> PyObject *"""
        return ___init__.Colorer_elemsWithColor(self, *args)

Colorer_swigregister = ___init__.Colorer_swigregister
Colorer_swigregister(Colorer)

class Partitioner(Operator):
    """Proxy of C++ Isorropia::Partitioner class."""

    __swig_setmethods__ = {}
    for _s in [Operator]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Partitioner, name, value)
    __swig_getmethods__ = {}
    for _s in [Operator]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, Partitioner, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_Partitioner

    def partition(self, *args):
        """partition(Partitioner self, bool forceRepartitioning=False)"""
        return ___init__.Partitioner_partition(self, *args)


    def numElemsInPart(self, *args):
        """numElemsInPart(Partitioner self, int part) -> int"""
        return ___init__.Partitioner_numElemsInPart(self, *args)


    def elemsInPart(self, *args):
        """elemsInPart(Partitioner self, int part, int * elementList, int len)"""
        return ___init__.Partitioner_elemsInPart(self, *args)


    def extractPartsView(self, *args):
        """extractPartsView(Partitioner self, int & size, int const *& array) -> int"""
        return ___init__.Partitioner_extractPartsView(self, *args)


    def extractPartsCopy(self, *args):
        """extractPartsCopy(Partitioner self, int len, int & size, int * array) -> int"""
        return ___init__.Partitioner_extractPartsCopy(self, *args)

Partitioner_swigregister = ___init__.Partitioner_swigregister
Partitioner_swigregister(Partitioner)

class Redistributor(_object):
    """Proxy of C++ Isorropia::Redistributor class."""

    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, Redistributor, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, Redistributor, name)
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_Redistributor

    def __init__(self, *args):
        """__init__(Isorropia::Redistributor self) -> Redistributor"""
        this = ___init__.new_Redistributor(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this
Redistributor_swigregister = ___init__.Redistributor_swigregister
Redistributor_swigregister(Redistributor)

class CostDescriber(_object):
    """Proxy of C++ Isorropia::CostDescriber class."""

    __swig_setmethods__ = {}
    __setattr__ = lambda self, name, value: _swig_setattr(self, CostDescriber, name, value)
    __swig_getmethods__ = {}
    __getattr__ = lambda self, name: _swig_getattr(self, CostDescriber, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_CostDescriber
CostDescriber_swigregister = ___init__.CostDescriber_swigregister
CostDescriber_swigregister(CostDescriber)

class Orderer(Operator):
    """Proxy of C++ Isorropia::Orderer class."""

    __swig_setmethods__ = {}
    for _s in [Operator]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, Orderer, name, value)
    __swig_getmethods__ = {}
    for _s in [Operator]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, Orderer, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_Orderer

    def order(self, *args):
        """order(Orderer self, bool forceOrdering=False)"""
        return ___init__.Orderer_order(self, *args)


    def extractPermutationView(self, *args):
        """extractPermutationView(Orderer self, int & size, int const *& array) -> int"""
        return ___init__.Orderer_extractPermutationView(self, *args)


    def extractPermutationCopy(self, *args):
        """extractPermutationCopy(Orderer self, int len, int & size, int * array) -> int"""
        return ___init__.Orderer_extractPermutationCopy(self, *args)

Orderer_swigregister = ___init__.Orderer_swigregister
Orderer_swigregister(Orderer)

class LevelScheduler(Operator):
    """Proxy of C++ Isorropia::LevelScheduler class."""

    __swig_setmethods__ = {}
    for _s in [Operator]:
        __swig_setmethods__.update(getattr(_s, '__swig_setmethods__', {}))
    __setattr__ = lambda self, name, value: _swig_setattr(self, LevelScheduler, name, value)
    __swig_getmethods__ = {}
    for _s in [Operator]:
        __swig_getmethods__.update(getattr(_s, '__swig_getmethods__', {}))
    __getattr__ = lambda self, name: _swig_getattr(self, LevelScheduler, name)

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined - class is abstract")
    __repr__ = _swig_repr
    __swig_destroy__ = ___init__.delete_LevelScheduler

    def schedule(self, *args):
        """schedule(LevelScheduler self, bool forceScheduling=False)"""
        return ___init__.LevelScheduler_schedule(self, *args)


    def numLevels(self, *args):
        """numLevels(LevelScheduler self) -> int"""
        return ___init__.LevelScheduler_numLevels(self, *args)


    def numElemsWithLevel(self, *args):
        """numElemsWithLevel(LevelScheduler self, int level) -> int"""
        return ___init__.LevelScheduler_numElemsWithLevel(self, *args)


    def elemsWithLevel(self, *args):
        """elemsWithLevel(LevelScheduler self, int level, int * elementList, int len)"""
        return ___init__.LevelScheduler_elemsWithLevel(self, *args)

LevelScheduler_swigregister = ___init__.LevelScheduler_swigregister
LevelScheduler_swigregister(LevelScheduler)


# Epetra namespace
__all__ = ['Epetra']
import IsorropiaEpetra as Epetra

# This file is compatible with both classic and new-style classes.


