/[escript]/trunk/escriptcore/test/python/test_linearPDEs.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/test_linearPDEs.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2828 by artak, Tue Dec 22 01:24:40 2009 UTC revision 2835 by artak, Mon Jan 11 01:23:52 2010 UTC
# Line 643  class Test_LinearPDE_noLumping(Test_line Line 643  class Test_LinearPDE_noLumping(Test_line
643      def test_SolverOptions(self):      def test_SolverOptions(self):
644          so=SolverOptions()          so=SolverOptions()
645                    
646          self.failUnless(so.getSmoother() == 10, "initial Smoother is wrong.")          self.failUnless(so.getSmoother() == 28, "initial Smoother is wrong.")
647          self.failUnlessRaises(ValueError,so.setSmoother,-1)          self.failUnlessRaises(ValueError,so.setSmoother,-1)
648          so.setSmoother(so.GAUSS_SEIDEL)          so.setSmoother(so.GAUSS_SEIDEL)
649          self.failUnless(so.getSmoother() == 28, "Gauss-Seidel smoother is not set.")          self.failUnless(so.getSmoother() == 28, "Gauss-Seidel smoother is not set.")
650            so.setSmoother(so.JACOBI)
651            self.failUnless(so.getSmoother() == 10, "Jacobi smoother is not set.")
652    
653          self.failUnless(so.getLevelMax() == 3, "initial  LevelMax is wrong.")          self.failUnless(so.getLevelMax() == 3, "initial  LevelMax is wrong.")
654          self.failUnlessRaises(ValueError,so.setLevelMax,-1)          self.failUnlessRaises(ValueError,so.setLevelMax,-1)

Legend:
Removed from v.2828  
changed lines
  Added in v.2835

  ViewVC Help
Powered by ViewVC 1.1.26