Ejemplo n.º 1
0
    def __init__(self, *args):
        this = _blockoperator.new_BlockOperator(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        from mfem.ser import intArray
        if len(args) == 1:
            if isinstance(args[0], intArray):
                self._offsets = args[0]
        if len(args) == 2:
            if (isinstance(args[0], intArray)
                    and isinstance(args[1], intArray)):
                self._offsets = (args[0], args[1])
Ejemplo n.º 2
0
    def __init__(self, *args):
        r"""
        __init__(BlockOperator self, intArray offsets) -> BlockOperator
        __init__(BlockOperator self, intArray row_offsets, intArray col_offsets) -> BlockOperator
        """
        _blockoperator.BlockOperator_swiginit(
            self, _blockoperator.new_BlockOperator(*args))

        from mfem.ser import intArray
        if len(args) == 1:
            if isinstance(args[0], intArray):
                self._offsets = args[0]
        if len(args) == 2:
            if (isinstance(args[0], intArray)
                    and isinstance(args[1], intArray)):
                self._offsets = (args[0], args[1])
Ejemplo n.º 3
0
    def __init__(self, *args):
        """
        __init__(mfem::BlockOperator self, intArray offsets) -> BlockOperator
        __init__(mfem::BlockOperator self, intArray row_offsets, intArray col_offsets) -> BlockOperator
        """
        this = _blockoperator.new_BlockOperator(*args)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        from mfem.par import intArray
        if len(args) == 1:
            if isinstance(args[0], intArray):
                self._offsets = args[0]
        if len(args) == 2:
            if (isinstance(args[0], intArray)
                    and isinstance(args[1], intArray)):
                self._offsets = (args[0], args[1])
Ejemplo n.º 4
0
 def __init__(self, *args):
     this = _blockoperator.new_BlockOperator(*args)
     try:
         self.this.append(this)
     except Exception:
         self.this = this