make local function static
fix typo in makefile
allow big grid exacution on Fermi