Fix for 32-bit floats. Closes #7.

This PR makes sure that grids are cast to 64-bit floats before being passed to the underlying Fortran code.