コード例 #1
0
ファイル: coefficient.py プロジェクト: badashangou/PyMFEM
    def __init__(self, mc, attr):
        this = _coefficient.new_MatrixRestrictedCoefficient(mc, attr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        self._ref_to_mc = mc
コード例 #2
0
    def __init__(self, mc, attr):
        """__init__(mfem::MatrixRestrictedCoefficient self, MatrixCoefficient mc, intArray attr) -> MatrixRestrictedCoefficient"""
        this = _coefficient.new_MatrixRestrictedCoefficient(mc, attr)
        try:
            self.this.append(this)
        except __builtin__.Exception:
            self.this = this

        self._ref_to_mc = mc