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

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _linearizedsystem
else:
    import _linearizedsystem

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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,)


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)


import ooflib.SWIG.common.doublevec
import ooflib.SWIG.engine.sparsemat
class LinearizedSystem(object):
    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr
    __swig_destroy__ = _linearizedsystem.delete_LinearizedSystem

    def time(self):
        return _linearizedsystem.LinearizedSystem_time(self)

    def set_time(self, arg2):
        return _linearizedsystem.LinearizedSystem_set_time(self, arg2)

    def clearResidual(self):
        return _linearizedsystem.LinearizedSystem_clearResidual(self)

    def clearForceBndyRhs(self):
        return _linearizedsystem.LinearizedSystem_clearForceBndyRhs(self)

    def clearBodyRhs(self):
        return _linearizedsystem.LinearizedSystem_clearBodyRhs(self)

    def clearMatrices(self):
        return _linearizedsystem.LinearizedSystem_clearMatrices(self)

    def clearJacobian(self):
        return _linearizedsystem.LinearizedSystem_clearJacobian(self)

    def cleanmaps(self):
        return _linearizedsystem.LinearizedSystem_cleanmaps(self)

    def resetFieldFlags(self):
        return _linearizedsystem.LinearizedSystem_resetFieldFlags(self)

    def getSubproblemDoFIndex(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_getSubproblemDoFIndex(self, arg2, arg3, arg4)

    def getSubproblemEqnIndex(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_getSubproblemEqnIndex(self, arg2, arg3, arg4)

    def profile_rhs(self, arg2):
        return _linearizedsystem.LinearizedSystem_profile_rhs(self, arg2)

    def applyFloatBC(self, arg2, arg3, arg4, arg5, arg6, arg7):
        return _linearizedsystem.LinearizedSystem_applyFloatBC(self, arg2, arg3, arg4, arg5, arg6, arg7)

    def build_submatrix_maps(self):
        return _linearizedsystem.LinearizedSystem_build_submatrix_maps(self)

    def build_MCK_maps(self):
        return _linearizedsystem.LinearizedSystem_build_MCK_maps(self)

    def fixdof(self, arg2):
        return _linearizedsystem.LinearizedSystem_fixdof(self, arg2)

    def fixeqn(self, arg2):
        return _linearizedsystem.LinearizedSystem_fixeqn(self, arg2)

    def is_fixed(self, arg2):
        return _linearizedsystem.LinearizedSystem_is_fixed(self, arg2)

    def find_fix_bndy_rhs(self, arg2):
        return _linearizedsystem.LinearizedSystem_find_fix_bndy_rhs(self, arg2)

    def get_unknowns_MCK(self, arg2):
        return _linearizedsystem.LinearizedSystem_get_unknowns_MCK(self, arg2)

    def get_unknowns_MCKa(self, arg2):
        return _linearizedsystem.LinearizedSystem_get_unknowns_MCKa(self, arg2)

    def get_unknowns_MCKd(self, arg2):
        return _linearizedsystem.LinearizedSystem_get_unknowns_MCKd(self, arg2)

    def set_unknowns_MCK(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_set_unknowns_MCK(self, arg2, arg3)

    def set_unknowns_MCKa(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_set_unknowns_MCKa(self, arg2, arg3)

    def set_unknowns_MCKd(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_set_unknowns_MCKd(self, arg2, arg3)

    def get_unknowns_part(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_get_unknowns_part(self, arg2, arg3)

    def set_unknowns_part(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_set_unknowns_part(self, arg2, arg3, arg4)

    def get_fields_MCKd(self, arg2):
        return _linearizedsystem.LinearizedSystem_get_fields_MCKd(self, arg2)

    def set_fields_MCKd(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_set_fields_MCKd(self, arg2, arg3)

    def get_derivs_MCKd(self, arg2):
        return _linearizedsystem.LinearizedSystem_get_derivs_MCKd(self, arg2)

    def set_derivs_MCKd(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_set_derivs_MCKd(self, arg2, arg3)

    def get_derivs_part_MCKa(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_get_derivs_part_MCKa(self, arg2, arg3)

    def get_derivs_part_MCKd(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_get_derivs_part_MCKd(self, arg2, arg3)

    def set_derivs_part_MCKa(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_set_derivs_part_MCKa(self, arg2, arg3, arg4)

    def set_derivs_part_MCKd(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_set_derivs_part_MCKd(self, arg2, arg3, arg4)

    def extract_MCa_dofs(self, arg2):
        return _linearizedsystem.LinearizedSystem_extract_MCa_dofs(self, arg2)

    def inject_MCa_dofs(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_inject_MCa_dofs(self, arg2, arg3)

    def expand_MCa_dofs(self, arg2):
        return _linearizedsystem.LinearizedSystem_expand_MCa_dofs(self, arg2)

    def error_estimation_dofs_MCKd(self, arg2):
        return _linearizedsystem.LinearizedSystem_error_estimation_dofs_MCKd(self, arg2)

    def n_unknowns_MCK(self):
        return _linearizedsystem.LinearizedSystem_n_unknowns_MCK(self)

    def n_unknowns_MCKa(self):
        return _linearizedsystem.LinearizedSystem_n_unknowns_MCKa(self)

    def n_unknowns_MCKd(self):
        return _linearizedsystem.LinearizedSystem_n_unknowns_MCKd(self)

    def n_unknowns_part(self, arg2):
        return _linearizedsystem.LinearizedSystem_n_unknowns_part(self, arg2)

    def K_submatrix(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_K_submatrix(self, arg2, arg3)

    def C_submatrix(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_C_submatrix(self, arg2, arg3)

    def M_submatrix(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_M_submatrix(self, arg2, arg3)

    def J_submatrix(self, arg2, arg3):
        return _linearizedsystem.LinearizedSystem_J_submatrix(self, arg2, arg3)

    def C21_nonempty(self):
        return _linearizedsystem.LinearizedSystem_C21_nonempty(self)

    def K_MCK(self):
        return _linearizedsystem.LinearizedSystem_K_MCK(self)

    def C_MCK(self):
        return _linearizedsystem.LinearizedSystem_C_MCK(self)

    def M_MCK(self):
        return _linearizedsystem.LinearizedSystem_M_MCK(self)

    def J_MCK(self):
        return _linearizedsystem.LinearizedSystem_J_MCK(self)

    def K_MCKa(self):
        return _linearizedsystem.LinearizedSystem_K_MCKa(self)

    def C_MCKa(self):
        return _linearizedsystem.LinearizedSystem_C_MCKa(self)

    def J_MCKa(self):
        return _linearizedsystem.LinearizedSystem_J_MCKa(self)

    def K_MCa(self):
        return _linearizedsystem.LinearizedSystem_K_MCa(self)

    def C_MCa(self):
        return _linearizedsystem.LinearizedSystem_C_MCa(self)

    def rhs_MCa(self):
        return _linearizedsystem.LinearizedSystem_rhs_MCa(self)

    def rhs_MCK(self):
        return _linearizedsystem.LinearizedSystem_rhs_MCK(self)

    def rhs_MCKa(self):
        return _linearizedsystem.LinearizedSystem_rhs_MCKa(self)

    def rhs_ind_part(self, arg2):
        return _linearizedsystem.LinearizedSystem_rhs_ind_part(self, arg2)

    def static_residual_MCK(self):
        return _linearizedsystem.LinearizedSystem_static_residual_MCK(self)

    def static_residual_MCKa(self, arg2):
        return _linearizedsystem.LinearizedSystem_static_residual_MCKa(self, arg2)

    def static_residual_MCa(self, arg2):
        return _linearizedsystem.LinearizedSystem_static_residual_MCa(self, arg2)

    def static_residual_ind_part(self, arg2):
        return _linearizedsystem.LinearizedSystem_static_residual_ind_part(self, arg2)

    def raw_static_residual(self):
        return _linearizedsystem.LinearizedSystem_raw_static_residual(self)

    def initDirichletDerivatives(self):
        return _linearizedsystem.LinearizedSystem_initDirichletDerivatives(self)

    def setDirichletDerivatives(self, arg2, arg3, arg4, arg5, arg6):
        return _linearizedsystem.LinearizedSystem_setDirichletDerivatives(self, arg2, arg3, arg4, arg5, arg6)

    def dumpMaps(self, arg2):
        return _linearizedsystem.LinearizedSystem_dumpMaps(self, arg2)

    def dumpAll(self, arg2, arg3, arg4):
        return _linearizedsystem.LinearizedSystem_dumpAll(self, arg2, arg3, arg4)

    def clone_(self):
        return _linearizedsystem.LinearizedSystem_clone_(self)

# Register LinearizedSystem in _linearizedsystem:
_linearizedsystem.LinearizedSystem_swigregister(LinearizedSystem)

def get_globalLinSysCount():
    return _linearizedsystem.get_globalLinSysCount()
# -*- python -*-

# This software was produced by NIST, an agency of the U.S. government,
# and by statute is not subject to copyright in the United States.
# Recipients of this software assume all responsibilities associated
# with its operation, modification and maintenance. However, to
# facilitate maintenance we ask that before distributing modified
# versions of this software, you first contact the authors at
# oof_manager@nist.gov. 

from ooflib.common import debug

def LinearizedSystem_clone(self):
# debug.fmsg("cloning LinearizedSystem")
    bozo = self.clone_()
# debug.fmsg("done cloning LinearizedSystem")
    bozo.computed = self.computed.clone() # TimeStamp
    return bozo

LinearizedSystem.clone = LinearizedSystem_clone


