Fixed setting up local grid dimensions in parallel.

This fixes FGE bug-tracker issue 57.