smbinterp/tools/timing/read_gmsh_file.py

13 lines
197 B
Python
Raw Normal View History

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'))