예제 #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)
예제 #2
0
파일: filter.py 프로젝트: mpimd-csc/cmess
 def test_t1_messlu_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_SPARSE_LU)
     self.template_filter(MESS_OP_TRANSPOSE, '1', False)
예제 #3
0
파일: filter.py 프로젝트: mpimd-csc/cmess
 def test_t1_umfpack_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)
     self.template_filter(MESS_OP_TRANSPOSE, '1', False)
예제 #4
0
파일: filter.py 프로젝트: mpimd-csc/cmess
 def test_n_messlu_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_SPARSE_LU)
     self.template_filter(MESS_OP_NONE, None, False)
예제 #5
0
파일: filter.py 프로젝트: mpimd-csc/cmess
 def test_n_umfpack_multi(self):
     """test"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)
     self.template_filter(MESS_OP_NONE, None, False)
예제 #6
0
파일: filter.py 프로젝트: mpimd-csc/cmess
 def tearDown(self):
     """called after every test function"""
     multidirect_select(MESS_MULTIDIRECT_UMFPACK_LU)