workaround for out of memory issue on stampede.
	modified:   sim.py