|
|
|
@ -4,10 +4,9 @@ import sys
|
|
|
|
|
import os |
|
|
|
|
from optparse import OptionParser |
|
|
|
|
|
|
|
|
|
import numpy as np |
|
|
|
|
|
|
|
|
|
from interp.grid.gmsh import ggrid |
|
|
|
|
from interp.tools import baker_exact_3D as exact |
|
|
|
|
from interp.grid.gmsh import ggrid |
|
|
|
|
from interp.tools import baker_exact_3D as exact, exact_me |
|
|
|
|
from interp.cluster import QueueManager, get_qs |
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
|
@ -41,7 +40,7 @@ if __name__ == '__main__':
|
|
|
|
|
if options.verbose: |
|
|
|
|
print "%s: starting parse input file" % myname |
|
|
|
|
g = ggrid(input_file) |
|
|
|
|
g.q = np.array([exact(x) for x in g.verts]) |
|
|
|
|
g.values = exact_me(g.points, exact) |
|
|
|
|
if options.verbose: |
|
|
|
|
print "%s: done parsing input file" % myname |
|
|
|
|
|
|
|
|
@ -62,7 +61,7 @@ if __name__ == '__main__':
|
|
|
|
|
while not tasksq.empty(): |
|
|
|
|
i, o, e, X = tasksq.get() |
|
|
|
|
try: |
|
|
|
|
a = g.run_baker(X, order=o, extra_points=e) |
|
|
|
|
a = g.interpolate(X, order=o, extra_points=e) |
|
|
|
|
resultsq.put((i, myname, a.qlin, a.error, a.final, exact(X))) |
|
|
|
|
except Exception as e: |
|
|
|
|
print X, e |
|
|
|
|