Automated Grid Generator For Mhd Flow Simulations Made With The Gems Code