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

revision 117 by jgs, Fri Apr 1 05:48:57 2005 UTC revision 122 by jgs, Thu Jun 9 05:38:05 2005 UTC
# Line 160  def solveScalar(numDim, totalNumElem, le Line 160  def solveScalar(numDim, totalNumElem, le
160  print "Test is started:"  print "Test is started:"
161  print "----------------"  print "----------------"
162  error=0.  error=0.
163  for numDim in [2,3]:  for numDim in [2, 3]:
164     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]:
165        for problem in [solveScalar,solveVector]:        for problem in [solveScalar,solveVector]:
166           if totalNumElem*2**numDim*numDim< 200000: error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])           error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])
167           for solver_method in [ "PCG" ]:           #if totalNumElem*2**numDim*numDim< 200000: error=max([problem(numDim, totalNumElem, len_x0, alpha,"DIRECT",""),error])
168              for prec in [ "JACOBI", "ILU0" ]:           # for solver_method in [ "PCG" ]:
169                 error=max([problem(numDim, totalNumElem, len_x0, alpha, solver_method,prec),error])           #    for prec in [ "JACOBI", "ILU0" ]:
170             #       error=max([problem(numDim, totalNumElem, len_x0, alpha, solver_method,prec),error])
171  print "----------------"  print "----------------"
172  print "maximum error over all tests is ",error  print "maximum error over all tests is ",error
173  print "----------------"  print "----------------"

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