def test_lradi_dae1_t_messlu(self): """test""" direct_select(MESS_DIRECT_SPARSE_LU) self.template_dae1(MESS_OP_TRANSPOSE)
def test_direct_select(self): """test""" pymess.direct_select(pymess.MESS_DIRECT_DEFAULT_LU) pymess.direct_select(pymess.MESS_DIRECT_SPARSE_LU) pymess.direct_select(pymess.MESS_DIRECT_LAPACK_LU) pymess.direct_select(pymess.MESS_DIRECT_BANDED_LU) if pymess.mess_have_umfpack(): pymess.direct_select(pymess.MESS_DIRECT_UMFPACK_LU) else: self.assertRaises(Exception, pymess.direct_select, pymess.MESS_DIRECT_UMFPACK_LU) if pymess.mess_have_superlu(): pymess.direct_select(pymess.MESS_DIRECT_SUPERLU_LU) else: self.assertRaises(Exception, pymess.direct_select, pymess.MESS_DIRECT_SUPERLU_LU) if pymess.mess_have_csparse(): pymess.direct_select(pymess.MESS_DIRECT_CSPARSE_LU) else: self.assertRaises(Exception, pymess.direct_select, pymess.MESS_DIRECT_CSPARSE_LU) if pymess.mess_have_mklpardiso(): pymess.direct_select(pymess.MESS_DIRECT_MKLPARDISO_LU) else: self.assertRaises(Exception, pymess.direct_select, pymess.MESS_DIRECT_MKLPARDISO_LU) # select the default solver after test pymess.direct_select(pymess.MESS_DIRECT_DEFAULT_LU)
def test_lradi_dae1_t_umfpack(self): """test""" direct_select(MESS_DIRECT_UMFPACK_LU) self.template_dae1(MESS_OP_TRANSPOSE)