/[escript]/trunk/finley/test/python/run_models.py
ViewVC logotype

Diff of /trunk/finley/test/python/run_models.py

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

revision 1488 by artak, Fri Apr 11 00:22:31 2008 UTC revision 1514 by artak, Wed Apr 16 00:15:44 2008 UTC
# Line 138  class Test_Simple2DModels(unittest.TestC Line 138  class Test_Simple2DModels(unittest.TestC
138         sp.initialize(f=F,fixed_u_mask=mask,eta=ETA)         sp.initialize(f=F,fixed_u_mask=mask,eta=ETA)
139         u0=(1-x[0])*x[0]*[0.,1.]         u0=(1-x[0])*x[0]*[0.,1.]
140         p0=Scalar(P1,ReducedSolution(self.domain))         p0=Scalar(P1,ReducedSolution(self.domain))
141         u,p=sp.solve(u0,p0,show_details=VERBOSE, verbose=VERBOSE,max_iter=100,solver="GMRES",iter_restart=12)         u,p=sp.solve(u0,p0,show_details=VERBOSE, verbose=VERBOSE,max_iter=100,solver="GMRES",iter_restart=20)
142                
143         error_v0=Lsup(u[0]-u0[0])         error_v0=Lsup(u[0]-u0[0])
144         error_v1=Lsup(u[1]-u0[1])/0.25         error_v1=Lsup(u[1]-u0[1])/0.25
# Line 324  class Test_Simple3DModels(unittest.TestC Line 324  class Test_Simple3DModels(unittest.TestC
324         sp.initialize(f=F,fixed_u_mask=mask,eta=ETA)         sp.initialize(f=F,fixed_u_mask=mask,eta=ETA)
325         u0=(1-x[0])*x[0]*(1-x[1])*x[1]*[0.,0.,1.]         u0=(1-x[0])*x[0]*(1-x[1])*x[1]*[0.,0.,1.]
326         p0=Scalar(P1,ReducedSolution(self.domain))         p0=Scalar(P1,ReducedSolution(self.domain))
327         u,p=sp.solve(u0,p0,show_details=VERBOSE, verbose=VERBOSE,max_iter=100,solver="GMRES",iter_restart=14)         u,p=sp.solve(u0,p0,show_details=VERBOSE, verbose=VERBOSE,max_iter=100,solver="GMRES",iter_restart=20)
328                
329         error_v0=Lsup(u[0]-u0[0])         error_v0=Lsup(u[0]-u0[0])
330         error_v1=Lsup(u[1]-u0[1])         error_v1=Lsup(u[1]-u0[1])

Legend:
Removed from v.1488  
changed lines
  Added in v.1514

  ViewVC Help
Powered by ViewVC 1.1.26