Exemplo n.º 1
0
    def test_multidirect_select(self):
        """test"""

        pymess.multidirect_select(pymess.MESS_MULTIDIRECT_SPARSE_LU)

        if pymess.mess_have_umfpack():
            pymess.multidirect_select(pymess.MESS_MULTIDIRECT_UMFPACK_LU)
        else:
            self.assertRaises(Exception, pymess.multidirect_select,
                              pymess.MESS_MULTIDIRECT_UMFPACK_LU)

        # select the default solver after test
        pymess.multidirect_select(pymess.MESS_MULTIDIRECT_SPARSE_LU)
Exemplo n.º 2
0
 def test_t1_messlu_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_SPARSE_LU)
     self.template_filter(MESS_OP_TRANSPOSE, '1', False)
Exemplo n.º 3
0
 def test_t1_umfpack_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)
     self.template_filter(MESS_OP_TRANSPOSE, '1', False)
Exemplo n.º 4
0
 def test_n_messlu_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_SPARSE_LU)
     self.template_filter(MESS_OP_NONE, None, False)
Exemplo n.º 5
0
 def test_n_umfpack_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)
     self.template_filter(MESS_OP_NONE, None, False)
Exemplo n.º 6
0
 def tearDown(self):
     """called after every test function"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)