Ejemplo n.º 1
0
    def test_constructor(self):
        """Test constructor"""
        namelist = IsenPython.NameList()
        try:
            solver = IsenPython.Solver("ref")
            solver.init(namelist)
        except RuntimeError as e:
            self.fail("IsenException caught: {0}".format(e.message))

        with self.assertRaises(RuntimeError):
            solver = IsenPython.Solver("qwfawsdqwadqwf")
            solver.init(namelist)
Ejemplo n.º 2
0
 def setUp(self):
     self.namelist = IsenPython.NameList()
     self.namelist.nx = 5
     self.namelist.nz = 5
     self.imoist = False
     self.imicrophys = 0
     self.idthdt = False
     self.solver = IsenPython.Solver()
     self.solver.init(self.namelist)
Ejemplo n.º 3
0
 def setUp(self):
     self.solver = IsenPython.Solver()