コード例 #1
0
ファイル: convectionTerm.py プロジェクト: calbaker/FiPy-2.1.3
 def __add__(self, other):
     if isinstance(other, ConvectionTerm):
         if other.__class__ != self.__class__:
             raise TypeError, "ConvectionTerms must use the same scheme: %s != %s" % (self.__class__.__name__, other.__class__.__name__)
         return self.__class__(coeff=self.coeff + other.coeff)
     else:
         return FaceTerm.__add__(self, other)