示例#1
0
def test_descriptor_repr():
    '''Test that the __repr__ method in Descriptor() behaves as
    expected.

    '''
    tmp = Descriptor("gh_inc", "w1")
    assert repr(tmp) == "Descriptor(gh_inc, w1)"
示例#2
0
 def __init__(self, access, funcspace, stencil, basis, diff_basis,
              gauss_quad):
     Descriptor.__init__(self, access, funcspace, stencil)
     self._basis = basis
     self._diff_basis = diff_basis
     self._gauss_quad = gauss_quad