コード例 #1
0
ファイル: TestPetscApp.py プロジェクト: jjle/pylith
 def _configure(self):
   PetscApplication._configure(self)
   self.foo = self.inventory.foo
   return
コード例 #2
0
ファイル: TestPetscApp.py プロジェクト: jjle/pylith
 def onComputeNodes(self, *args, **kwds):
   PetscApplication.onComputeNodes(self, args, kwds)
   assert(-1 == self.foo.value)
   assert("_cleanup" == self.label)
   return
コード例 #3
0
ファイル: TestPetscApp.py プロジェクト: jjle/pylith
 def __init__(self):
   PetscApplication.__init__(self, name="testapp")
   return
コード例 #4
0
 def test_constructor(self):
     app = PetscApplication()
コード例 #5
0
ファイル: TestPetscApp.py プロジェクト: thearagon/pylith
 def onComputeNodes(self, *args, **kwds):
     PetscApplication.onComputeNodes(self, args, kwds)
     assert(-1 == self.foo.value)
     assert("_cleanup" == self.label)
     return
コード例 #6
0
ファイル: TestPetscApp.py プロジェクト: thearagon/pylith
 def __init__(self):
     PetscApplication.__init__(self, name="testapp")
     return
コード例 #7
0
 def _configure(self):
     PetscApplication._configure(self)
     self.foo = self.inventory.foo
     return