smbinterp/tools/timing/read_gmsh_file.py
2011-09-27 15:29:23 -06:00

13 lines
197 B
Python

import sys
import time
import pickle
from interp.grid.gmsh import ggrid
start = time.time()
g = ggrid(sys.argv[1])
print time.time() - start
g.tree = None
pickle.dump(g, open(sys.argv[2], 'w'))