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

Diff of /trunk/esys2/finley/test/python/SolveTest.py

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

revision 122 by jgs, Thu Jun 9 05:38:05 2005 UTC revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC
# Line 82  def solveVector(numDim, totalNumElem, le Line 82  def solveVector(numDim, totalNumElem, le
82      mypde=LinearPDE(mesh)      mypde=LinearPDE(mesh)
83      mypde.setValue(A = A, Y = - 2 * alpha * (meshDim - 1)*ones(meshDim), q = bndryMask, r = u)      mypde.setValue(A = A, Y = - 2 * alpha * (meshDim - 1)*ones(meshDim), q = bndryMask, r = u)
84      mypde.setSolverMethod(solver_method_id)      mypde.setSolverMethod(solver_method_id)
85        # mypde.getOperator().saveMM("g.mm")
86    
87      # Solve for Approximate Solution      # Solve for Approximate Solution
88      tm=time()      tm=time()
# Line 161  print "Test is started:" Line 162  print "Test is started:"
162  print "----------------"  print "----------------"
163  error=0.  error=0.
164  for numDim in [2, 3]:  for numDim in [2, 3]:
165       # for totalNumElem in [51200]:
166     for totalNumElem in [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200, 102400,204800]:     for totalNumElem in [100, 200, 400, 800, 1600, 3200, 6400, 12800, 25600, 51200, 102400,204800]:
167        for problem in [solveScalar,solveVector]:        for problem in [solveScalar,solveVector]:
168          #for problem in [solveVector]:
169           error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])           error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])
170           #if totalNumElem*2**numDim*numDim< 200000: error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])           #if totalNumElem*2**numDim*numDim< 200000: error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])
171           # for solver_method in [ "PCG" ]:           # for solver_method in [ "PCG" ]:

Legend:
Removed from v.122  
changed lines
  Added in v.123

  ViewVC Help
Powered by ViewVC 1.1.26