Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(0)  |  Derive(2)  |  Import(1)

src/s/a/sailfish-HEAD/tests/subdomain.py   sailfish(Download)
from sailfish.subdomain_runner import SubdomainRunner
from sailfish.sym import D2Q9, D3Q19, S
from common import TestCase2D, TestCase3D
 
 
class TestNodeTypeSetting2D(TestCase2D):
    def test_array_setting(self):
        envelope = 1
        spec = SubdomainSpec2D((0, 0), self.lattice_size,
                               envelope_size=envelope, id_=0)
class TestOrientationDetection2D(TestCase2D):
    def test_orientation(self):
        spec = SubdomainSpec2D((0, 0), self.lattice_size, envelope_size=1, id_=0)
        spec.runner = SubdomainRunner(self.sim, spec, output=None,
                                      backend=self.backend, quit_event=None)